[][src]Trait lettre::Tokio1Transport

pub trait Tokio1Transport {
    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 tokio1 only.

tokio 1.x based Transport method for emails

Associated Types

type Ok[src]

Response produced by the Transport

type Error[src]

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, 
[src]

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, 
[src]

This is supported on crate feature builder only.

Sends the email

Loading content...

Implementors

impl Tokio1Transport for FileTransport[src]

This is supported on crate feature file-transport only.

type Ok = String

This is supported on crate feature tokio1 only.

type Error = Error

This is supported on crate feature tokio1 only.

impl Tokio1Transport for SendmailTransport[src]

This is supported on crate feature sendmail-transport only.

type Ok = ()

This is supported on crate feature tokio1 only.

type Error = Error

This is supported on crate feature tokio1 only.

impl Tokio1Transport for AsyncSmtpTransport<Tokio1Connector>[src]

This is supported on crate feature smtp-transport only.

type Ok = Response

This is supported on crate feature tokio1 only.

type Error = Error

This is supported on crate feature tokio1 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 tokio1 only.

Sends an email

Loading content...