Trait lettre::transport::AsyncTransport [−][src]
This is supported on crate features
tokio02
or tokio1
or async-std1
only.Async Transport method for emails
Associated Types
Loading content...Required methods
#[must_use]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
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
envelope: &'life1 Envelope,
email: &'life2 [u8]
) -> Pin<Box<dyn Future<Output = Result<Self::Ok, Self::Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Self: 'async_trait,
Provided methods
#[must_use]fn send<'life0, 'async_trait>(
&'life0 self,
message: Message
) -> Pin<Box<dyn Future<Output = Result<Self::Ok, Self::Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: Sync + 'async_trait,
[src]
&'life0 self,
message: Message
) -> Pin<Box<dyn Future<Output = Result<Self::Ok, Self::Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: Sync + 'async_trait,
This is supported on crate feature
builder
only.Sends the email
Implementors
impl AsyncTransport for AsyncSendmailTransport<AsyncStd1Executor>
[src]
This is supported on crate feature
sendmail-transport
only.type Ok = ()
This is supported on crate features
tokio02
or tokio1
or async-std1
only.type Error = Error
This is supported on crate features
tokio02
or tokio1
or async-std1
only.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
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
envelope: &'life1 Envelope,
email: &'life2 [u8]
) -> Pin<Box<dyn Future<Output = Result<Self::Ok, Self::Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Self: 'async_trait,
impl AsyncTransport for AsyncSendmailTransport<Tokio1Executor>
[src]
This is supported on crate feature
sendmail-transport
only.type Ok = ()
This is supported on crate features
tokio02
or tokio1
or async-std1
only.type Error = Error
This is supported on crate features
tokio02
or tokio1
or async-std1
only.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
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
envelope: &'life1 Envelope,
email: &'life2 [u8]
) -> Pin<Box<dyn Future<Output = Result<Self::Ok, Self::Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Self: 'async_trait,
impl AsyncTransport for AsyncSendmailTransport<Tokio02Executor>
[src]
This is supported on crate feature
sendmail-transport
only.type Ok = ()
This is supported on crate features
tokio02
or tokio1
or async-std1
only.type Error = Error
This is supported on crate features
tokio02
or tokio1
or async-std1
only.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
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
envelope: &'life1 Envelope,
email: &'life2 [u8]
) -> Pin<Box<dyn Future<Output = Result<Self::Ok, Self::Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Self: 'async_trait,
impl AsyncTransport for AsyncSmtpTransport<AsyncStd1Executor>
[src]
This is supported on crate feature
smtp-transport
only.type Ok = Response
This is supported on crate features
tokio02
or tokio1
or async-std1
only.type Error = Error
This is supported on crate features
tokio02
or tokio1
or async-std1
only.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
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
envelope: &'life1 Envelope,
email: &'life2 [u8]
) -> Pin<Box<dyn Future<Output = Result<Self::Ok, Self::Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Self: 'async_trait,
This is supported on crate features
tokio02
or tokio1
or async-std1
only.Sends an email
impl AsyncTransport for AsyncSmtpTransport<Tokio1Executor>
[src]
This is supported on crate feature
smtp-transport
only.type Ok = Response
This is supported on crate features
tokio02
or tokio1
or async-std1
only.type Error = Error
This is supported on crate features
tokio02
or tokio1
or async-std1
only.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
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
envelope: &'life1 Envelope,
email: &'life2 [u8]
) -> Pin<Box<dyn Future<Output = Result<Self::Ok, Self::Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Self: 'async_trait,
This is supported on crate features
tokio02
or tokio1
or async-std1
only.Sends an email
impl AsyncTransport for AsyncSmtpTransport<Tokio02Executor>
[src]
This is supported on crate feature
smtp-transport
only.type Ok = Response
This is supported on crate features
tokio02
or tokio1
or async-std1
only.type Error = Error
This is supported on crate features
tokio02
or tokio1
or async-std1
only.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
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
envelope: &'life1 Envelope,
email: &'life2 [u8]
) -> Pin<Box<dyn Future<Output = Result<Self::Ok, Self::Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Self: 'async_trait,
This is supported on crate features
tokio02
or tokio1
or async-std1
only.Sends an email
impl AsyncTransport for StubTransport
[src]
type Ok = ()
This is supported on crate features
tokio02
or tokio1
or async-std1
only.type Error = Error
This is supported on crate features
tokio02
or tokio1
or async-std1
only.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
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
_envelope: &'life1 Envelope,
_email: &'life2 [u8]
) -> Pin<Box<dyn Future<Output = Result<Self::Ok, Self::Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Self: 'async_trait,
impl<E> AsyncTransport for AsyncFileTransport<E> where
E: Executor,
[src]
E: Executor,
This is supported on crate feature
file-transport
only.type Ok = String
This is supported on crate features
tokio02
or tokio1
or async-std1
only.type Error = Error
This is supported on crate features
tokio02
or tokio1
or async-std1
only.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
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
envelope: &'life1 Envelope,
email: &'life2 [u8]
) -> Pin<Box<dyn Future<Output = Result<Self::Ok, Self::Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Self: 'async_trait,