pub trait Mailer: Send + Sync {
// Required method
fn send(&self, mail: &Mail) -> Result<(), String>;
}Expand description
Sends email. Blocking: it runs off the async threads.
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".