Trait async_smtp::Transport
source · [−]pub trait Transport<'a> {
type Result;
fn send<'life0, 'async_trait>(
&'life0 mut self,
email: SendableEmail
) -> Pin<Box<dyn Future<Output = Self::Result> + Send + 'async_trait>>
where
'life0: 'async_trait,
Self: 'async_trait;
fn send_with_timeout<'life0, 'life1, 'async_trait>(
&'life0 mut self,
email: SendableEmail,
timeout: Option<&'life1 Duration>
) -> Pin<Box<dyn Future<Output = Self::Result> + Send + 'async_trait>>
where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait;
}
Expand description
Transport method for emails
Required Associated Types
Required Methods
Sends the email