Trait Encoder

Source
pub trait Encoder {
    type Message<'a>;

    // Required method
    fn encode(&self, message: &Self::Message<'_>) -> Encoded ;
}
Expand description

Encoder.

Implemented for types that know how to encode a specific IMAP message. See implementors.

Required Associated Types§

Source

type Message<'a>

Required Methods§

Source

fn encode(&self, message: &Self::Message<'_>) -> Encoded

Encode this message.

This will return an Encoded message.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§