[][src]Trait lettre::AsyncStd1Transport

pub trait AsyncStd1Transport {
    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 async-std1 only.

async-std 1.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 AsyncStd1Transport for FileTransport[src]

type Ok = String

This is supported on crate feature async-std1 only.

type Error = Error

This is supported on crate feature async-std1 only.

impl AsyncStd1Transport for SendmailTransport[src]

type Ok = ()

This is supported on crate feature async-std1 only.

type Error = Error

This is supported on crate feature async-std1 only.

impl AsyncStd1Transport for StubTransport[src]

type Ok = ()

This is supported on crate feature async-std1 only.

type Error = Error

This is supported on crate feature async-std1 only.
Loading content...