Struct monoio_http::h1::codec::decoder::IoOwnedDecoder
source · pub struct IoOwnedDecoder<IO, HD> { /* private fields */ }
Implementations§
Trait Implementations§
source§impl<IO, HD> BorrowFramedRead for IoOwnedDecoder<IO, HD>
impl<IO, HD> BorrowFramedRead for IoOwnedDecoder<IO, HD>
type IO = IO
type Codec = HD
fn framed_mut(&mut self) -> &mut FramedRead<Self::IO, Self::Codec>
source§impl<IO, HD> Stream for IoOwnedDecoder<IO, HD>where
IO: AsyncReadRent,
HD: Decoder<Item = (ResponseHead, PayloadDecoder<FixedBodyDecoder, ChunkedBodyDecoder>), Error = HttpError>,
impl<IO, HD> Stream for IoOwnedDecoder<IO, HD>where IO: AsyncReadRent, HD: Decoder<Item = (ResponseHead, PayloadDecoder<FixedBodyDecoder, ChunkedBodyDecoder>), Error = HttpError>,
§type Item = Result<Response<PayloadDecoder<FixedBodyDecoder, ChunkedBodyDecoder>>, HttpError>
type Item = Result<Response<PayloadDecoder<FixedBodyDecoder, ChunkedBodyDecoder>>, HttpError>
Values yielded by the stream.
§type NextFuture<'a> = impl Future<Output = Option<<IoOwnedDecoder<IO, HD> as Stream>::Item>> + 'a
where
Self: 'a
type NextFuture<'a> = impl Future<Output = Option<<IoOwnedDecoder<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 IoOwnedDecoder<IO, HD>where HD: RefUnwindSafe, IO: RefUnwindSafe,
impl<IO, HD> Send for IoOwnedDecoder<IO, HD>where HD: Send, IO: Send,
impl<IO, HD> Sync for IoOwnedDecoder<IO, HD>where HD: Sync, IO: Sync,
impl<IO, HD> Unpin for IoOwnedDecoder<IO, HD>where HD: Unpin, IO: Unpin,
impl<IO, HD> UnwindSafe for IoOwnedDecoder<IO, HD>where HD: UnwindSafe, IO: UnwindSafe,
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.