Struct imap_codec::CommandCodec
source · #[non_exhaustive]pub struct CommandCodec;
Expand description
Codec for commands.
Implementations§
source§impl CommandCodec
impl CommandCodec
Trait Implementations§
source§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>>
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 CommandCodec
impl Default for CommandCodec
source§fn default() -> CommandCodec
fn default() -> CommandCodec
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl RefUnwindSafe for CommandCodec
impl Send for CommandCodec
impl Sync for CommandCodec
impl Unpin 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