pub struct StreamDecoderRead { /* private fields */ }Expand description
Decoder for stream<list<u8>> with AsyncRead support
Trait Implementations§
Source§impl Decoder for StreamDecoderRead
impl Decoder for StreamDecoderRead
Source§fn decode(
&mut self,
src: &mut BytesMut,
) -> Result<Option<Self::Item>, Self::Error>
fn decode( &mut self, src: &mut BytesMut, ) -> Result<Option<Self::Item>, Self::Error>
Attempts to decode a frame from the provided buffer of bytes. Read more
Source§impl Default for StreamDecoderRead
impl Default for StreamDecoderRead
Source§fn default() -> StreamDecoderRead
fn default() -> StreamDecoderRead
Returns the “default value” for a type. Read more
Source§impl Deferred<BufferedIncoming> for StreamDecoderRead
impl Deferred<BufferedIncoming> for StreamDecoderRead
Source§fn take_deferred(&mut self) -> Option<DeferredFn<BufferedIncoming>>
fn take_deferred(&mut self) -> Option<DeferredFn<BufferedIncoming>>
Takes a deferred async processing operation, if any
Auto Trait Implementations§
impl !RefUnwindSafe for StreamDecoderRead
impl !Sync for StreamDecoderRead
impl !UnwindSafe for StreamDecoderRead
impl Freeze for StreamDecoderRead
impl Send for StreamDecoderRead
impl Unpin for StreamDecoderRead
impl UnsafeUnpin for StreamDecoderRead
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