pub struct ControlPacketV2Codec {}
Implementations§
Trait Implementations§
Source§impl Clone for ControlPacketV2Codec
impl Clone for ControlPacketV2Codec
Source§fn clone(&self) -> ControlPacketV2Codec
fn clone(&self) -> ControlPacketV2Codec
Returns a copy 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 ControlPacketV2Codec
impl Debug for ControlPacketV2Codec
Source§impl Decoder for ControlPacketV2Codec
impl Decoder for ControlPacketV2Codec
Source§type Item = ControlPacketV2
type Item = ControlPacketV2
The type of decoded frames.
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 Default for ControlPacketV2Codec
impl Default for ControlPacketV2Codec
Source§fn default() -> ControlPacketV2Codec
fn default() -> ControlPacketV2Codec
Returns the “default value” for a type. Read more
Source§impl Hash for ControlPacketV2Codec
impl Hash for ControlPacketV2Codec
Source§impl Ord for ControlPacketV2Codec
impl Ord for ControlPacketV2Codec
Source§fn cmp(&self, other: &ControlPacketV2Codec) -> Ordering
fn cmp(&self, other: &ControlPacketV2Codec) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for ControlPacketV2Codec
impl PartialEq for ControlPacketV2Codec
Source§impl PartialOrd for ControlPacketV2Codec
impl PartialOrd for ControlPacketV2Codec
impl Copy for ControlPacketV2Codec
impl Eq for ControlPacketV2Codec
impl StructuralPartialEq for ControlPacketV2Codec
Auto Trait Implementations§
impl Freeze for ControlPacketV2Codec
impl RefUnwindSafe for ControlPacketV2Codec
impl Send for ControlPacketV2Codec
impl Sync for ControlPacketV2Codec
impl Unpin for ControlPacketV2Codec
impl UnwindSafe for ControlPacketV2Codec
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