Struct wrpc_transport::StreamDecoderRead
source · pub struct StreamDecoderRead<R> { /* private fields */ }
Expand description
Decoder for stream<list<u8>>
with AsyncRead
support
Trait Implementations§
source§impl<R> Decoder for StreamDecoderRead<R>
impl<R> Decoder for StreamDecoderRead<R>
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<R> Default for StreamDecoderRead<R>
impl<R> Default for StreamDecoderRead<R>
source§impl<R> Deferred<Incoming<R>> for StreamDecoderRead<R>
impl<R> Deferred<Incoming<R>> for StreamDecoderRead<R>
source§fn take_deferred(&mut self) -> Option<DeferredFn<Incoming<R>>>
fn take_deferred(&mut self) -> Option<DeferredFn<Incoming<R>>>
Takes a deferred async processing operation, if any
Auto Trait Implementations§
impl<R> Freeze for StreamDecoderRead<R>
impl<R> !RefUnwindSafe for StreamDecoderRead<R>
impl<R> Send for StreamDecoderRead<R>
impl<R> !Sync for StreamDecoderRead<R>
impl<R> Unpin for StreamDecoderRead<R>
impl<R> !UnwindSafe for StreamDecoderRead<R>
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