pub struct TcpServerCodec;Expand description
Mutual convert TCP Server frames and buffers.
Trait Implementations§
Source§impl Debug for TcpServerCodec
impl Debug for TcpServerCodec
Source§impl Decoder for TcpServerCodec
impl Decoder for TcpServerCodec
Source§fn decode(&mut self, src: &mut BytesMut) -> Result<Option<Request>>
fn decode(&mut self, src: &mut BytesMut) -> Result<Option<Request>>
Attempts to decode a frame from the provided buffer of bytes. Read more
Source§impl Default for TcpServerCodec
impl Default for TcpServerCodec
Source§fn default() -> TcpServerCodec
fn default() -> TcpServerCodec
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for TcpServerCodec
impl RefUnwindSafe for TcpServerCodec
impl Send for TcpServerCodec
impl Sync for TcpServerCodec
impl Unpin for TcpServerCodec
impl UnwindSafe for TcpServerCodec
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