EmailSender

Trait EmailSender 

Source
pub trait EmailSender: Send + Sync {
    // Required method
    fn send<'a>(
        &'a self,
        address: &'a str,
        code: &'a str,
    ) -> Pin<Box<dyn Future<Output = Result<(), String>> + Send + 'a>>;
}
Expand description

Abstraction over email delivery.

Required Methods§

Source

fn send<'a>( &'a self, address: &'a str, code: &'a str, ) -> Pin<Box<dyn Future<Output = Result<(), String>> + Send + 'a>>

Send code to address. Returns an error string on failure.

Implementors§