Struct wrpc_transport::StreamDecoderBytes
source · pub struct StreamDecoderBytes<R> { /* private fields */ }
Expand description
Decoder for stream<list<u8>>
Trait Implementations§
source§impl<R> Decoder for StreamDecoderBytes<R>
impl<R> Decoder for StreamDecoderBytes<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 StreamDecoderBytes<R>
impl<R> Default for StreamDecoderBytes<R>
source§impl<R> Deferred<Incoming<R>> for StreamDecoderBytes<R>
impl<R> Deferred<Incoming<R>> for StreamDecoderBytes<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 StreamDecoderBytes<R>
impl<R> !RefUnwindSafe for StreamDecoderBytes<R>
impl<R> Send for StreamDecoderBytes<R>
impl<R> !Sync for StreamDecoderBytes<R>
impl<R> Unpin for StreamDecoderBytes<R>
impl<R> !UnwindSafe for StreamDecoderBytes<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