logo
pub trait AsyncTransport {
    type Ok;
    type Error;

    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
; 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
, { ... } }
Available on crate features tokio1 or async-std1 only.
Expand description

Async Transport method for emails

Required Associated Types

Response produced by the Transport

Error produced by the Transport

Required Methods

Provided Methods

Available on crate feature builder only.

Sends the email

Implementors