Trait samotop_delivery::smtp::net::Connector[][src]

pub trait Connector: Debug + Sync + Send {
    type Stream: MayBeTls + Read + Write + Unpin + Sync + Send + 'static;
    fn connect<'s, 'c, 'a, C: ConnectionConfiguration>(
        &'s self,
        configuration: &'c C
    ) -> SyncFuture<'a, Result<Self::Stream>>
    where
        's: 'a,
        'c: 'a
; }

Associated Types

type Stream: MayBeTls + Read + Write + Unpin + Sync + Send + 'static[src]

Loading content...

Required methods

fn connect<'s, 'c, 'a, C: ConnectionConfiguration>(
    &'s self,
    configuration: &'c C
) -> SyncFuture<'a, Result<Self::Stream>> where
    's: 'a,
    'c: 'a, 
[src]

This provider of connectivity takes care of resolving given address (which could be an IP, FQDN, URL...), establishing a connection and enabling (or not) TLS upgrade.

Loading content...

Implementors

impl<TLS> Connector for TcpConnector<TLS> where
    TLS: TlsProvider + Sync + Send + 'static, 
[src]

type Stream = TlsCapable

fn connect<'s, 'c, 'a, C: ConnectionConfiguration + Sync>(
    &'s self,
    configuration: &'c C
) -> SyncFuture<'a, Result<Self::Stream>> where
    's: 'a,
    'c: 'a, 
[src]

This provider of connectivity takes care of resolving given address (which could be an IP, FQDN, URL...), establishing a connection and enabling (or not) TLS upgrade.

impl<TLS> Connector for UnixConnector<TLS> where
    TLS: TlsProvider + Sync + Send + 'static, 
[src]

type Stream = TlsCapable

fn connect<'s, 'c, 'a, C: ConnectionConfiguration + Sync>(
    &'s self,
    configuration: &'c C
) -> SyncFuture<'a, Result<Self::Stream>> where
    's: 'a,
    'c: 'a, 
[src]

This provider of connectivity takes care of resolving given address (which could be an IP, FQDN, URL...), establishing a connection and enabling (or not) TLS upgrade.

Loading content...