Skip to main content

MailSender

Trait MailSender 

Source
pub trait MailSender: Send + Sync {
    // Required methods
    fn send<'life0, 'async_trait>(
        &'life0 self,
        message: MailMessage,
    ) -> Pin<Box<dyn Future<Output = MailSendResult<()>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn as_any(&self) -> &dyn Any;
}
Expand description

Product-neutral mail sender trait.

Required Methods§

Source

fn send<'life0, 'async_trait>( &'life0 self, message: MailMessage, ) -> Pin<Box<dyn Future<Output = MailSendResult<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Sends a fully rendered message.

Source

fn as_any(&self) -> &dyn Any

Exposes concrete sender type for test downcasting.

Implementors§