pub struct BoxBody { /* private fields */ }Expand description
Dynamic Send body object.
Implementations§
Trait Implementations§
Source§impl Body for BoxBody
impl Body for BoxBody
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§fn poll_data(&mut self) -> Poll<Option<Self::Data>, Self::Error>
fn poll_data(&mut self) -> Poll<Option<Self::Data>, Self::Error>
Attempt to pull out the next data buffer of this stream.
Auto Trait Implementations§
impl Freeze for BoxBody
impl !RefUnwindSafe for BoxBody
impl Send for BoxBody
impl !Sync for BoxBody
impl Unpin for BoxBody
impl !UnwindSafe for BoxBody
Blanket Implementations§
Source§impl<T> Body for T
impl<T> Body for T
type Data = <T as Body>::Data
type Error = <T as Body>::Error
fn is_end_stream(&self) -> bool
fn poll_data( &mut self, ) -> Result<Async<Option<<T as Body>::Data>>, <T as Body>::Error>
fn poll_trailers( &mut self, ) -> Result<Async<Option<HeaderMap>>, <T as Body>::Error>
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