pub trait Deliver: Send + Sync {
// Required method
fn deliver(&self, mail: &Mail) -> Result<(), MailerError>;
}Available on crate feature
mailer and non-WebAssembly only.Expand description
Something that sends mail: Mailer (SMTP), TestMailbox (keeps
it, for tests and development), or your own (an HTTP email API).
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".