Struct wrpc_transport::FutureDecoder
source · pub struct FutureDecoder<T, R>where
T: Decode<R>,{ /* private fields */ }
Expand description
Decoder for future<T>
Trait Implementations§
source§impl<T, R> Decoder for FutureDecoder<T, R>
impl<T, R> Decoder for FutureDecoder<T, R>
source§type Error = <<T as Decode<R>>::Decoder as Decoder>::Error
type Error = <<T as Decode<R>>::Decoder 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 FutureDecoder<T, R>where
T: Decode<R>,
impl<T, R> Default for FutureDecoder<T, R>where
T: Decode<R>,
source§impl<T, R> Deferred<Incoming<R>> for FutureDecoder<T, R>where
T: Decode<R>,
impl<T, R> Deferred<Incoming<R>> for FutureDecoder<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 FutureDecoder<T, R>
impl<T, R> !RefUnwindSafe for FutureDecoder<T, R>
impl<T, R> Send for FutureDecoder<T, R>where
T: Send,
impl<T, R> !Sync for FutureDecoder<T, R>
impl<T, R> Unpin for FutureDecoder<T, R>
impl<T, R> !UnwindSafe for FutureDecoder<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