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