Struct imap_codec::GreetingCodec
source · #[non_exhaustive]pub struct GreetingCodec;
Expand description
Codec for greetings.
Implementations§
source§impl GreetingCodec
impl GreetingCodec
Trait Implementations§
source§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>>
source§fn decode_static<'a>(
&self,
input: &'a [u8]
) -> Result<(&'a [u8], Self::Message<'static>), Self::Error<'static>>where
Self::Message<'a>: IntoBoundedStatic<Static = Self::Message<'static>>,
Self::Error<'a>: IntoBoundedStatic<Static = Self::Error<'static>>,
fn decode_static<'a>( &self, input: &'a [u8] ) -> Result<(&'a [u8], Self::Message<'static>), Self::Error<'static>>where Self::Message<'a>: IntoBoundedStatic<Static = Self::Message<'static>>, Self::Error<'a>: IntoBoundedStatic<Static = Self::Error<'static>>,
Available on crate feature
bounded-static
only.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
Auto Trait Implementations§
impl RefUnwindSafe for GreetingCodec
impl Send for GreetingCodec
impl Sync for GreetingCodec
impl Unpin 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