pub struct RawControlCodec;
Expand description
A Codec
implementation that parses a stream of data into RawControlPackets.
Implementations§
Trait Implementations§
Source§impl Debug for RawControlCodec
impl Debug for RawControlCodec
Source§impl Decoder for RawControlCodec
impl Decoder for RawControlCodec
Source§type Item = RawControlPacket
type Item = RawControlPacket
The type of decoded frames.
Source§fn decode(
&mut self,
buf: &mut BytesMut,
) -> Result<Option<RawControlPacket>, Error>
fn decode( &mut self, buf: &mut BytesMut, ) -> Result<Option<RawControlPacket>, Error>
Attempts to decode a frame from the provided buffer of bytes. Read more
Source§impl Default for RawControlCodec
impl Default for RawControlCodec
Auto Trait Implementations§
impl Freeze for RawControlCodec
impl RefUnwindSafe for RawControlCodec
impl Send for RawControlCodec
impl Sync for RawControlCodec
impl Unpin for RawControlCodec
impl UnwindSafe for RawControlCodec
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