Struct wrpc_transport::UnitCodec
source · pub struct UnitCodec;
Expand description
Codec for ()
Trait Implementations§
source§impl Decoder for UnitCodec
impl Decoder for UnitCodec
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> Deferred<T> for UnitCodec
impl<T> Deferred<T> for UnitCodec
source§fn take_deferred(&mut self) -> Option<DeferredFn<T>>
fn take_deferred(&mut self) -> Option<DeferredFn<T>>
Takes a deferred async processing operation, if any
impl Copy for UnitCodec
impl Eq for UnitCodec
impl StructuralPartialEq for UnitCodec
Auto Trait Implementations§
impl Freeze for UnitCodec
impl RefUnwindSafe for UnitCodec
impl Send for UnitCodec
impl Sync for UnitCodec
impl Unpin for UnitCodec
impl UnwindSafe for UnitCodec
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)