MCPcopy Create free account
hub / github.com/duesee/imap-codec / Encoder

Interface Encoder

imap-codec/src/codec/encode.rs:87–94  ·  view source on GitHub ↗

Encoder. Implemented for types that know how to encode a specific IMAP message. See [implementors](trait.Encoder.html#implementors).

Source from the content-addressed store, hash-verified

85///
86/// Implemented for types that know how to encode a specific IMAP message. See [implementors](trait.Encoder.html#implementors).
87pub trait Encoder {
88 type Message<'a>;
89
90 /// Encode this message.
91 ///
92 /// This will return an [`Encoded`] message.
93 fn encode(&self, message: &Self::Message<'_>) -> Encoded;
94}
95
96/// An encoded message.
97///

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected