Struct wrpc_transport::ResourceOwnDecoder
source · pub struct ResourceOwnDecoder<T: ?Sized> { /* private fields */ }
Expand description
Decoder for owned resource types
Trait Implementations§
source§impl<T: ?Sized> Decoder for ResourceOwnDecoder<T>
impl<T: ?Sized> Decoder for ResourceOwnDecoder<T>
source§type Item = ResourceOwn<T>
type Item = ResourceOwn<T>
The type of decoded frames.
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: ?Sized> Default for ResourceOwnDecoder<T>
impl<T: ?Sized> Default for ResourceOwnDecoder<T>
source§impl<R, T: ?Sized> Deferred<Incoming<R>> for ResourceOwnDecoder<T>
impl<R, T: ?Sized> Deferred<Incoming<R>> for ResourceOwnDecoder<T>
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> Freeze for ResourceOwnDecoder<T>where
T: ?Sized,
impl<T> RefUnwindSafe for ResourceOwnDecoder<T>where
T: RefUnwindSafe + ?Sized,
impl<T> Send for ResourceOwnDecoder<T>
impl<T> Sync for ResourceOwnDecoder<T>
impl<T> Unpin for ResourceOwnDecoder<T>
impl<T> UnwindSafe for ResourceOwnDecoder<T>where
T: UnwindSafe + ?Sized,
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