pub struct GenericDecoder<IO, HD> { /* private fields */ }
Implementations§
Source§impl<IO, HD: Default> GenericDecoder<IO, HD>
impl<IO, HD: Default> GenericDecoder<IO, HD>
pub fn new(io: IO) -> Self
pub fn new_with_timeout(io: IO, timeout: Duration) -> Self
Source§impl<IO, HD> GenericDecoder<IO, HD>
impl<IO, HD> GenericDecoder<IO, HD>
pub fn set_timeout(&mut self, timeout: Option<Duration>)
Trait Implementations§
Source§impl<IO, HD, I> FillPayload for GenericDecoder<IO, HD>where
IO: AsyncReadRent,
HD: Decoder<Item = (I, NextDecoder<FixedBodyDecoder, ChunkedBodyDecoder, Bytes>), Error = HttpError>,
impl<IO, HD, I> FillPayload for GenericDecoder<IO, HD>where
IO: AsyncReadRent,
HD: Decoder<Item = (I, NextDecoder<FixedBodyDecoder, ChunkedBodyDecoder, Bytes>), Error = HttpError>,
Source§impl<IO, HD, I> Stream for GenericDecoder<IO, HD>where
IO: AsyncReadRent,
HD: Decoder<Item = (I, NextDecoder<FixedBodyDecoder, ChunkedBodyDecoder, Bytes>), Error = HttpError>,
impl<IO, HD, I> Stream for GenericDecoder<IO, HD>where
IO: AsyncReadRent,
HD: Decoder<Item = (I, NextDecoder<FixedBodyDecoder, ChunkedBodyDecoder, Bytes>), Error = HttpError>,
Auto Trait Implementations§
impl<IO, HD> Freeze for GenericDecoder<IO, HD>
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>
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