Skip to main content

Mailer

Trait Mailer 

Source
pub trait Mailer: Send + Sync {
    // Required method
    fn send<'a>(
        &'a self,
        to: &'a str,
        subject: &'a str,
        body: &'a str,
    ) -> BoxFuture<'a, Result<()>>;
}
Expand description

Sends sign-in links and invitations.

Required Methods§

Source

fn send<'a>( &'a self, to: &'a str, subject: &'a str, body: &'a str, ) -> BoxFuture<'a, Result<()>>

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§