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
Self: 'async_trait,
'life0: '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
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
}
Expand description
Transport method for emails
Required Associated Types§
Required Methods§
sourcefn send<'life0, 'async_trait>(
&'life0 mut self,
email: SendableEmail
) -> Pin<Box<dyn Future<Output = Self::Result> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn send<'life0, 'async_trait>(
&'life0 mut self,
email: SendableEmail
) -> Pin<Box<dyn Future<Output = Self::Result> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Sends the email