Trait lettre::AsyncTransport
source · pub trait AsyncTransport {
type Ok;
type Error;
// Required method
fn send_raw<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
envelope: &'life1 Envelope,
email: &'life2 [u8],
) -> Pin<Box<dyn Future<Output = Result<Self::Ok, Self::Error>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait;
// Provided method
fn send<'life0, 'async_trait>(
&'life0 self,
message: Message,
) -> Pin<Box<dyn Future<Output = Result<Self::Ok, Self::Error>> + Send + 'async_trait>>
where Self: Sync + 'async_trait,
'life0: 'async_trait { ... }
}
Available on crate features
tokio1
or async-std1
only.Expand description
Async Transport method for emails
Required Associated Types§
Required Methods§
fn send_raw<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
envelope: &'life1 Envelope,
email: &'life2 [u8],
) -> Pin<Box<dyn Future<Output = Result<Self::Ok, Self::Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Provided Methods§
Implementors§
source§impl AsyncTransport for AsyncSendmailTransport<AsyncStd1Executor>
Available on crate feature sendmail-transport
only.
impl AsyncTransport for AsyncSendmailTransport<AsyncStd1Executor>
Available on crate feature
sendmail-transport
only.source§impl AsyncTransport for AsyncSendmailTransport<Tokio1Executor>
Available on crate feature sendmail-transport
only.
impl AsyncTransport for AsyncSendmailTransport<Tokio1Executor>
Available on crate feature
sendmail-transport
only.source§impl AsyncTransport for AsyncSmtpTransport<AsyncStd1Executor>
Available on crate feature smtp-transport
only.
impl AsyncTransport for AsyncSmtpTransport<AsyncStd1Executor>
Available on crate feature
smtp-transport
only.source§impl AsyncTransport for AsyncSmtpTransport<Tokio1Executor>
Available on crate feature smtp-transport
only.
impl AsyncTransport for AsyncSmtpTransport<Tokio1Executor>
Available on crate feature
smtp-transport
only.