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