pub struct ClientCodec<P>where
P: Protocol,{ /* private fields */ }
Trait Implementations§
Source§impl<P: Protocol> Decoder for ClientCodec<P>
impl<P: Protocol> Decoder for ClientCodec<P>
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
Source§impl<P> Default for ClientCodec<P>where
P: Protocol,
impl<P> Default for ClientCodec<P>where
P: Protocol,
Auto Trait Implementations§
impl<P> Freeze for ClientCodec<P>
impl<P> RefUnwindSafe for ClientCodec<P>where
P: RefUnwindSafe,
impl<P> Send for ClientCodec<P>
impl<P> Sync for ClientCodec<P>
impl<P> Unpin for ClientCodec<P>where
P: Unpin,
impl<P> UnwindSafe for ClientCodec<P>where
P: 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