pub struct CoptDecoder<D>(pub D);Tuple Fields§
§0: DTrait Implementations§
Source§impl<F: Debug + Eq + PartialEq, D: Decoder<Item = F>> Decoder for CoptDecoder<D>
impl<F: Debug + Eq + PartialEq, D: Decoder<Item = F>> Decoder for CoptDecoder<D>
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<D> Freeze for CoptDecoder<D>where
D: Freeze,
impl<D> RefUnwindSafe for CoptDecoder<D>where
D: RefUnwindSafe,
impl<D> Send for CoptDecoder<D>where
D: Send,
impl<D> Sync for CoptDecoder<D>where
D: Sync,
impl<D> Unpin for CoptDecoder<D>where
D: Unpin,
impl<D> UnwindSafe for CoptDecoder<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