Struct hyper_simple_server::BodyDynBox
source · [−]pub struct BodyDynBox(_);
Implementations
Trait Implementations
sourceimpl Body for BodyDynBox
impl Body for BodyDynBox
sourcefn poll_data(
self: Pin<&mut Self>,
_context: &mut Context<'_>
) -> Poll<Option<ServerResult<Bytes>>>
fn poll_data(
self: Pin<&mut Self>,
_context: &mut Context<'_>
) -> Poll<Option<ServerResult<Bytes>>>
Attempt to pull out the next data buffer of this stream.
sourcefn poll_trailers(
self: Pin<&mut Self>,
_context: &mut Context<'_>
) -> Poll<ServerResult<Option<Headers>>>
fn poll_trailers(
self: Pin<&mut Self>,
_context: &mut Context<'_>
) -> Poll<ServerResult<Option<Headers>>>
Poll for an optional single HeaderMap
of trailers. Read more
sourcefn is_end_stream(&self) -> bool
fn is_end_stream(&self) -> bool
Returns true
when the end of stream has been reached. Read more
sourcefn size_hint(&self) -> BodySizeHint
fn size_hint(&self) -> BodySizeHint
Returns the bounds on the remaining length of the stream. Read more
sourcefn data(&mut self) -> Data<'_, Self>ⓘNotable traits for Data<'a, T>impl<'a, T> Future for Data<'a, T> where
T: Body + Unpin + ?Sized, type Output = Option<Result<<T as Body>::Data, <T as Body>::Error>>;
where
Self: Unpin,
fn data(&mut self) -> Data<'_, Self>ⓘNotable traits for Data<'a, T>impl<'a, T> Future for Data<'a, T> where
T: Body + Unpin + ?Sized, type Output = Option<Result<<T as Body>::Data, <T as Body>::Error>>;
where
Self: Unpin,
T: Body + Unpin + ?Sized, type Output = Option<Result<<T as Body>::Data, <T as Body>::Error>>;
Returns future that resolves to next data chunk, if any.
sourcefn trailers(&mut self) -> Trailers<'_, Self>ⓘNotable traits for Trailers<'a, T>impl<'a, T> Future for Trailers<'a, T> where
T: Body + Unpin + ?Sized, type Output = Result<Option<HeaderMap<HeaderValue>>, <T as Body>::Error>;
where
Self: Unpin,
fn trailers(&mut self) -> Trailers<'_, Self>ⓘNotable traits for Trailers<'a, T>impl<'a, T> Future for Trailers<'a, T> where
T: Body + Unpin + ?Sized, type Output = Result<Option<HeaderMap<HeaderValue>>, <T as Body>::Error>;
where
Self: Unpin,
T: Body + Unpin + ?Sized, type Output = Result<Option<HeaderMap<HeaderValue>>, <T as Body>::Error>;
Returns future that resolves to trailers, if any.
sourcefn map_data<F, B>(self, f: F) -> MapData<Self, F> where
F: FnMut(Self::Data) -> B,
B: Buf,
fn map_data<F, B>(self, f: F) -> MapData<Self, F> where
F: FnMut(Self::Data) -> B,
B: Buf,
Maps this body’s data value to a different value.
sourcefn map_err<F, E>(self, f: F) -> MapErr<Self, F> where
F: FnMut(Self::Error) -> E,
fn map_err<F, E>(self, f: F) -> MapErr<Self, F> where
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 + Send + Sync,
fn boxed(self) -> BoxBody<Self::Data, Self::Error> where
Self: 'static + Send + Sync,
Turn this body into a boxed trait object.
sourcefn boxed_unsync(self) -> UnsyncBoxBody<Self::Data, Self::Error> where
Self: 'static + Send,
fn boxed_unsync(self) -> UnsyncBoxBody<Self::Data, Self::Error> where
Self: 'static + Send,
Turn this body into a boxed trait object that is !Sync.
Auto Trait Implementations
impl !RefUnwindSafe for BodyDynBox
impl Send for BodyDynBox
impl Sync for BodyDynBox
impl Unpin for BodyDynBox
impl !UnwindSafe for BodyDynBox
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more