#[non_exhaustive]pub struct CommandCodec;Expand description
Codec for commands.
Implementations§
Source§impl CommandCodec
impl CommandCodec
Trait Implementations§
Source§impl Clone for CommandCodec
impl Clone for CommandCodec
Source§fn clone(&self) -> CommandCodec
fn clone(&self) -> CommandCodec
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 CommandCodec
impl Debug for CommandCodec
Source§impl Decoder for CommandCodec
impl Decoder for CommandCodec
type Message<'a> = Command<'a>
type Error<'a> = CommandDecodeError<'a>
fn decode<'a>( &self, input: &'a [u8], ) -> Result<(&'a [u8], Self::Message<'a>), Self::Error<'a>>
fn decode_static<'a>(
&self,
input: &'a [u8],
) -> Result<(&'a [u8], Self::Message<'static>), Self::Error<'static>>where
Self::Message<'a>: IntoStatic<Static = Self::Message<'static>>,
Self::Error<'a>: IntoStatic<Static = Self::Error<'static>>,
Source§impl Default for CommandCodec
impl Default for CommandCodec
Source§fn default() -> CommandCodec
fn default() -> CommandCodec
Returns the “default value” for a type. Read more
Source§impl Encoder for CommandCodec
impl Encoder for CommandCodec
Source§impl PartialEq for CommandCodec
impl PartialEq for CommandCodec
impl StructuralPartialEq for CommandCodec
Auto Trait Implementations§
impl Freeze for CommandCodec
impl RefUnwindSafe for CommandCodec
impl Send for CommandCodec
impl Sync for CommandCodec
impl Unpin for CommandCodec
impl UnsafeUnpin for CommandCodec
impl UnwindSafe for CommandCodec
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