Struct monoio_http::h1::payload::StreamPayload
source · [−]pub struct StreamPayload<D = Bytes, E = PayloadError> { /* private fields */ }
Expand description
Stream Payload
Trait Implementations
sourceimpl<D: Debug, E: Debug> Debug for StreamPayload<D, E>
impl<D: Debug, E: Debug> Debug for StreamPayload<D, E>
sourceimpl<D, E> From<StreamPayload<D, E>> for Payload<D, E>
impl<D, E> From<StreamPayload<D, E>> for Payload<D, E>
sourcefn from(inner: StreamPayload<D, E>) -> Self
fn from(inner: StreamPayload<D, E>) -> Self
Converts to this type from the input type.
sourceimpl<D, E> Stream for StreamPayload<D, E>
impl<D, E> Stream for StreamPayload<D, E>
type NextFuture<'a>
where
Self: 'a = impl Future<Output = Option<<StreamPayload<D, E> as Stream>::Item>>
type NextFuture<'a>
where
Self: 'a = impl Future<Output = Option<<StreamPayload<D, E> as Stream>::Item>>
Future representing the next value of the stream.
sourcefn next(&mut self) -> Self::NextFuture<'_>
fn next(&mut self) -> Self::NextFuture<'_>
Attempt to pull out the next value of this stream, registering the
current task for wakeup if the value is not yet available, and returning
None
if the stream is exhausted. Read moreAuto Trait Implementations
impl<D = Bytes, E = PayloadError> !RefUnwindSafe for StreamPayload<D, E>
impl<D = Bytes, E = PayloadError> !Send for StreamPayload<D, E>
impl<D = Bytes, E = PayloadError> !Sync for StreamPayload<D, E>
impl<D, E> Unpin for StreamPayload<D, E>
impl<D = Bytes, E = PayloadError> !UnwindSafe for StreamPayload<D, E>
Blanket Implementations
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
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> StreamExt for Twhere
T: Stream,
impl<T> StreamExt for Twhere
T: Stream,
sourcefn map<T, F>(self, f: F) -> Map<Self, F>where
F: FnMut(Self::Item) -> T,
fn map<T, F>(self, f: F) -> Map<Self, F>where
F: FnMut(Self::Item) -> T,
Maps a stream to a stream of its items.