pub struct Incoming { /* private fields */ }
Expand description
A stream of Bytes
, used when receiving bodies from the network.
Trait Implementations
sourceimpl Body for Incoming
impl Body for Incoming
Auto Trait Implementations
impl !RefUnwindSafe for Incoming
impl Send for Incoming
impl Sync for Incoming
impl Unpin for Incoming
impl !UnwindSafe for Incoming
Blanket Implementations
sourceimpl<T> BodyExt for Twhere
T: Body + ?Sized,
impl<T> BodyExt for Twhere
T: Body + ?Sized,
sourcefn 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.sourcefn map_frame<F, B>(self, f: F) -> MapFrame<Self, F>where
Self: Sized,
F: FnMut(Frame<Self::Data>) -> Frame<B>,
B: Buf,
fn map_frame<F, B>(self, f: F) -> MapFrame<Self, F>where
Self: Sized,
F: FnMut(Frame<Self::Data>) -> Frame<B>,
B: Buf,
Maps this body’s frame to a different kind.
sourcefn map_err<F, E>(self, f: F) -> MapErr<Self, F>where
Self: Sized,
F: FnMut(Self::Error) -> E,
fn map_err<F, E>(self, f: F) -> MapErr<Self, F>where
Self: Sized,
F: FnMut(Self::Error) -> E,
Maps this body’s error value to a different value.
sourcefn boxed(self) -> BoxBody<Self::Data, Self::Error>where
Self: 'static + Sized + Send + Sync,
fn boxed(self) -> BoxBody<Self::Data, Self::Error>where
Self: 'static + Sized + Send + Sync,
Turn this body into a boxed trait object.
sourcefn boxed_unsync(self) -> UnsyncBoxBody<Self::Data, Self::Error>where
Self: 'static + Sized + Send,
fn boxed_unsync(self) -> UnsyncBoxBody<Self::Data, Self::Error>where
Self: 'static + Sized + Send,
Turn this body into a boxed trait object that is !Sync.
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more