Skip to main content

Deliver

Trait Deliver 

Source
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§

Source

fn deliver(&self, mail: &Mail) -> Result<(), MailerError>

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§