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