pub struct BodyBytes { /* private fields */ }
Expand description
Concrete implementation of (Body).
Implementations§
Trait Implementations§
Source§impl Body for BodyBytes
impl Body for BodyBytes
Source§fn poll_frame(
self: Pin<&mut BodyBytes>,
cx: &mut Context<'_>,
) -> Poll<Option<Result<Frame<<BodyBytes as Body>::Data>, <BodyBytes as Body>::Error>>>
fn poll_frame( self: Pin<&mut BodyBytes>, cx: &mut Context<'_>, ) -> Poll<Option<Result<Frame<<BodyBytes as Body>::Data>, <BodyBytes as Body>::Error>>>
Attempt to pull out the next data buffer of this stream.
Source§fn is_end_stream(&self) -> bool
fn is_end_stream(&self) -> bool
Returns
true
when the end of stream has been reached. Read moreSource§impl ProductOSClient<BodyBytes, BodyBytes> for ProductOSRequestClient
impl ProductOSClient<BodyBytes, BodyBytes> for ProductOSRequestClient
fn build(&mut self, requester: &ProductOSRequester)
fn new_request( &self, method: Method, url: String, ) -> ProductOSRequest<BodyBytes>
fn request<'life0, 'async_trait>(
&'life0 self,
r: ProductOSRequest<BodyBytes>,
) -> Pin<Box<dyn Future<Output = Result<ProductOSResponse<BodyBytes>, ProductOSRequestError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn request_simple<'life0, 'life1, 'async_trait>(
&'life0 self,
method: Method,
url: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<ProductOSResponse<BodyBytes>, ProductOSRequestError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn request_raw<'life0, 'async_trait>(
&'life0 self,
r: Request<BodyBytes>,
) -> Pin<Box<dyn Future<Output = Result<ProductOSResponse<BodyBytes>, ProductOSRequestError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn text<'life0, 'async_trait>(
&'life0 self,
r: ProductOSResponse<BodyBytes>,
) -> Pin<Box<dyn Future<Output = Result<String, ProductOSRequestError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn bytes<'life0, 'async_trait>(
&'life0 self,
r: ProductOSResponse<BodyBytes>,
) -> Pin<Box<dyn Future<Output = Result<Bytes, ProductOSRequestError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Auto Trait Implementations§
impl !Freeze for BodyBytes
impl RefUnwindSafe for BodyBytes
impl Send for BodyBytes
impl Sync for BodyBytes
impl Unpin for BodyBytes
impl UnwindSafe for BodyBytes
Blanket Implementations§
Source§impl<T> BodyExt for T
impl<T> BodyExt for T
Source§fn frame(&mut self) -> Frame<'_, Self> ⓘwhere
Self: Unpin,
fn frame(&mut self) -> Frame<'_, Self> ⓘwhere
Self: Unpin,
Returns a future that resolves to the next
Frame
, if any.Source§fn map_frame<F, B>(self, f: F) -> MapFrame<Self, F>
fn map_frame<F, B>(self, f: F) -> MapFrame<Self, F>
Maps this body’s frame to a different kind.
Source§fn map_err<F, E>(self, f: F) -> MapErr<Self, F>
fn map_err<F, E>(self, f: F) -> MapErr<Self, F>
Maps this body’s error value to a different value.
Source§fn boxed_unsync(self) -> UnsyncBoxBody<Self::Data, Self::Error>
fn boxed_unsync(self) -> UnsyncBoxBody<Self::Data, Self::Error>
Turn this body into a boxed trait object that is !Sync.
Source§fn collect(self) -> Collect<Self> ⓘwhere
Self: Sized,
fn collect(self) -> Collect<Self> ⓘwhere
Self: Sized,
Turn this body into
Collected
body which will collect all the DATA frames
and trailers.Source§fn with_trailers<F>(self, trailers: F) -> WithTrailers<Self, F>
fn with_trailers<F>(self, trailers: F) -> WithTrailers<Self, F>
Add trailers to the body. Read more
Source§fn into_data_stream(self) -> BodyDataStream<Self>where
Self: Sized,
fn into_data_stream(self) -> BodyDataStream<Self>where
Self: Sized,
Turn this body into
BodyDataStream
.Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)