pub struct Codec<C> { /* private fields */ }Trait Implementations§
Source§impl<D: Decoder> Decoder for Codec<D>
impl<D: Decoder> Decoder for Codec<D>
Source§fn decode(&mut self, src: &mut BytesMut) -> Result<Option<D::Item>, D::Error>
fn decode(&mut self, src: &mut BytesMut) -> Result<Option<D::Item>, D::Error>
Attempts to decode a frame from the provided buffer of bytes. Read more
Auto Trait Implementations§
impl<C> Freeze for Codec<C>where
C: Freeze,
impl<C> RefUnwindSafe for Codec<C>where
C: RefUnwindSafe,
impl<C> Send for Codec<C>where
C: Send,
impl<C> Sync for Codec<C>where
C: Sync,
impl<C> Unpin for Codec<C>where
C: Unpin,
impl<C> UnwindSafe for Codec<C>where
C: UnwindSafe,
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