[][src]Trait lettre::Tokio03Transport

pub trait Tokio03Transport {
    type Ok;
    type Error;
#[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
; #[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
, { ... } }
This is supported on crate feature tokio03 only.

tokio 0.3.x based Transport method for emails

Associated Types

type Ok

Response produced by the Transport

type Error

Error produced by the Transport

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, 

Loading content...

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, 

This is supported on crate feature builder only.

Sends the email

Loading content...

Implementors

impl Tokio03Transport for AsyncSmtpTransport<Tokio03Connector>[src]

type Ok = Response

This is supported on crate feature tokio03 only.

type Error = Error

This is supported on crate feature tokio03 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]

This is supported on crate feature tokio03 only.

Sends an email

impl Tokio03Transport for FileTransport[src]

type Ok = String

This is supported on crate feature tokio03 only.

type Error = Error

This is supported on crate feature tokio03 only.

impl Tokio03Transport for SendmailTransport[src]

type Ok = ()

This is supported on crate feature tokio03 only.

type Error = Error

This is supported on crate feature tokio03 only.
Loading content...