Struct monoio_http::h1::codec::decoder::GenericDecoder
source · pub struct GenericDecoder<IO, HD> { /* private fields */ }
Implementations§
Trait Implementations§
source§impl<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> = impl Future<Output = Result<(), <GenericDecoder<IO, HD> as FillPayload>::Error>> + 'a where Self: 'a
fn fill_payload(&mut self) -> Self::FillPayloadFuture<'_>
source§impl<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> = impl Future<Output = Option<<GenericDecoder<IO, HD> as Stream>::Item>> + 'a
where
Self: 'a
type NextFuture<'a> = impl Future<Output = Option<<GenericDecoder<IO, HD> as Stream>::Item>> + 'a where Self: 'a
Future representing the next value of the stream.
source§fn 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.Auto 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§
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
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> StreamExt for Twhere
T: Stream,
impl<T> StreamExt for Twhere T: Stream,
source§fn map<T, F>(self, f: F) -> Map<Self, F>where
F: FnMut(Self::Item) -> T,
Self: Sized,
fn map<T, F>(self, f: F) -> Map<Self, F>where F: FnMut(Self::Item) -> T, Self: Sized,
Maps a stream to a stream of its items.