Struct monoio_http::h1::codec::decoder::GenericDecoder
source · [−]pub struct GenericDecoder<IO, HD> { /* private fields */ }
Implementations
sourceimpl<IO, HD> GenericDecoder<IO, HD>where
HD: Default,
impl<IO, HD> GenericDecoder<IO, HD>where
HD: Default,
Trait Implementations
sourceimpl<IO, HD, I> FillPayload for GenericDecoder<IO, HD>where
IO: AsyncReadRent,
HD: Decoder<Item = (I, NextDecoder<FixedBodyDecoder, ChunkedBodyDecoder, Bytes>), Error = DecodeError>,
impl<IO, HD, I> FillPayload for GenericDecoder<IO, HD>where
IO: AsyncReadRent,
HD: Decoder<Item = (I, NextDecoder<FixedBodyDecoder, ChunkedBodyDecoder, Bytes>), Error = DecodeError>,
type Error = DecodeError
type FillPayloadFuture<'a>
where
Self: 'a = impl Future<Output = Result<(), <GenericDecoder<IO, HD> as FillPayload>::Error>>
fn fill_payload(&mut self) -> Self::FillPayloadFuture<'_>
sourceimpl<IO, HD, I> Stream for GenericDecoder<IO, HD>where
IO: AsyncReadRent,
HD: Decoder<Item = (I, NextDecoder<FixedBodyDecoder, ChunkedBodyDecoder, Bytes>), Error = DecodeError>,
impl<IO, HD, I> Stream for GenericDecoder<IO, HD>where
IO: AsyncReadRent,
HD: Decoder<Item = (I, NextDecoder<FixedBodyDecoder, ChunkedBodyDecoder, Bytes>), Error = DecodeError>,
type Item = Result<I, DecodeError>
type Item = Result<I, DecodeError>
Values yielded by the stream.
type NextFuture<'a>
where
Self: 'a = impl Future<Output = Option<<GenericDecoder<IO, HD> as Stream>::Item>>
type NextFuture<'a>
where
Self: 'a = impl Future<Output = Option<<GenericDecoder<IO, HD> 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<IO, HD> !RefUnwindSafe for GenericDecoder<IO, HD>
impl<IO, HD> !Send for GenericDecoder<IO, HD>
impl<IO, HD> !Sync for GenericDecoder<IO, HD>
impl<IO, HD> Unpin for GenericDecoder<IO, HD>where
HD: Unpin,
IO: Unpin,
impl<IO, HD> !UnwindSafe for GenericDecoder<IO, HD>
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.