[][src]Trait lettre::Tokio02Transport

pub trait Tokio02Transport {
    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 tokio02 only.

tokio 0.2.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 Tokio02Transport for AsyncSmtpTransport<Tokio02Connector>[src]

type Ok = Response

This is supported on crate feature tokio02 only.

type Error = Error

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

Sends an email

impl Tokio02Transport for FileTransport[src]

type Ok = String

This is supported on crate feature tokio02 only.

type Error = Error

This is supported on crate feature tokio02 only.

impl Tokio02Transport for SendmailTransport[src]

type Ok = ()

This is supported on crate feature tokio02 only.

type Error = Error

This is supported on crate feature tokio02 only.

impl Tokio02Transport for StubTransport[src]

type Ok = ()

This is supported on crate feature tokio02 only.

type Error = Error

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