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