[][src]Trait lettre::transport::smtp::AsyncSmtpConnector

pub trait AsyncSmtpConnector: Default + Sealed {
#[must_use]    fn connect<'life0, 'life1, 'life2, 'async_trait>(
        hostname: &'life0 str,
        port: u16,
        hello_name: &'life1 ClientId,
        tls: &'life2 Tls
    ) -> Pin<Box<dyn Future<Output = Result<AsyncSmtpConnection, Error>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait
; }
This is supported on crate feature smtp-transport only.

Required methods

#[must_use]fn connect<'life0, 'life1, 'life2, 'async_trait>(
    hostname: &'life0 str,
    port: u16,
    hello_name: &'life1 ClientId,
    tls: &'life2 Tls
) -> Pin<Box<dyn Future<Output = Result<AsyncSmtpConnection, Error>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    'life1: 'async_trait,
    'life2: 'async_trait, 
[src]

Loading content...

Implementors

impl AsyncSmtpConnector for AsyncStd1Connector[src]

impl AsyncSmtpConnector for Tokio1Connector[src]

impl AsyncSmtpConnector for Tokio02Connector[src]

Loading content...