Struct wrpc_transport::StreamDecoder
source · pub struct StreamDecoder<T, R>where
T: Decode<R>,{ /* private fields */ }
Expand description
Decoder for stream<T>
Trait Implementations§
source§impl<T, R> Decoder for StreamDecoder<T, R>
impl<T, R> Decoder for StreamDecoder<T, R>
source§type Error = <<T as Decode<R>>::ListDecoder as Decoder>::Error
type Error = <<T as Decode<R>>::ListDecoder as Decoder>::Error
The type of unrecoverable frame decoding errors. Read more
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<T, R> Default for StreamDecoder<T, R>where
T: Decode<R>,
impl<T, R> Default for StreamDecoder<T, R>where
T: Decode<R>,
source§impl<T, R> Deferred<Incoming<R>> for StreamDecoder<T, R>where
T: Decode<R>,
impl<T, R> Deferred<Incoming<R>> for StreamDecoder<T, R>where
T: Decode<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<T, R> Freeze for StreamDecoder<T, R>
impl<T, R> !RefUnwindSafe for StreamDecoder<T, R>
impl<T, R> Send for StreamDecoder<T, R>
impl<T, R> !Sync for StreamDecoder<T, R>
impl<T, R> Unpin for StreamDecoder<T, R>
impl<T, R> !UnwindSafe for StreamDecoder<T, 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