pub struct FrameCodec { /* private fields */ }Expand description
Codec type for [Message] that implements tokio_util::codec::Decoder and tokio_util::codec::Encoder.
Implementations§
Source§impl FrameCodec
impl FrameCodec
pub fn new() -> FrameCodec
Trait Implementations§
Source§impl Clone for FrameCodec
impl Clone for FrameCodec
Source§fn clone(&self) -> FrameCodec
fn clone(&self) -> FrameCodec
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for FrameCodec
impl Debug for FrameCodec
Source§impl Decoder for FrameCodec
impl Decoder for FrameCodec
Source§fn decode(
&mut self,
src: &mut BytesMut,
) -> Result<Option<<FrameCodec as Decoder>::Item>, <FrameCodec as Decoder>::Error>
fn decode( &mut self, src: &mut BytesMut, ) -> Result<Option<<FrameCodec as Decoder>::Item>, <FrameCodec as Decoder>::Error>
Attempts to decode a frame from the provided buffer of bytes. Read more
Source§impl Default for FrameCodec
impl Default for FrameCodec
Source§fn default() -> FrameCodec
fn default() -> FrameCodec
Returns the “default value” for a type. Read more
Source§impl Encoder<Bytes> for FrameCodec
impl Encoder<Bytes> for FrameCodec
Source§impl PartialEq for FrameCodec
impl PartialEq for FrameCodec
impl Eq for FrameCodec
impl StructuralPartialEq for FrameCodec
Auto Trait Implementations§
impl Freeze for FrameCodec
impl RefUnwindSafe for FrameCodec
impl Send for FrameCodec
impl Sync for FrameCodec
impl Unpin for FrameCodec
impl UnwindSafe for FrameCodec
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