pub struct TrustCodec;Trait Implementations§
Source§impl Decoder for TrustCodec
impl Decoder for TrustCodec
Source§type Item = TrustMessage
type Item = TrustMessage
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
Auto Trait Implementations§
impl Freeze for TrustCodec
impl RefUnwindSafe for TrustCodec
impl Send for TrustCodec
impl Sync for TrustCodec
impl Unpin for TrustCodec
impl UnsafeUnpin for TrustCodec
impl UnwindSafe for TrustCodec
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