Trait async_smtp::smtp::client::net::Connector [−][src]
A trait for the concept of opening a stream
Required methods
#[must_use]fn connect<'life0, 'life1, 'async_trait>(
addr: &'life0 SocketAddr,
timeout: Option<Duration>,
tls_parameters: Option<&'life1 ClientTlsParameters>
) -> Pin<Box<dyn Future<Output = Result<Self>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
[src]
addr: &'life0 SocketAddr,
timeout: Option<Duration>,
tls_parameters: Option<&'life1 ClientTlsParameters>
) -> Pin<Box<dyn Future<Output = Result<Self>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
Opens a connection to the given IP socket
#[must_use]fn upgrade_tls<'life0, 'async_trait>(
self,
tls_parameters: &'life0 ClientTlsParameters
) -> Pin<Box<dyn Future<Output = Result<Self>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
[src]
self,
tls_parameters: &'life0 ClientTlsParameters
) -> Pin<Box<dyn Future<Output = Result<Self>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
Upgrades to TLS connection
fn is_encrypted(&self) -> bool
[src]
Is the NetworkStream encrypted
Implementors
impl Connector for NetworkStream
[src]
fn connect<'life0, 'life1, 'async_trait>(
addr: &'life0 SocketAddr,
timeout: Option<Duration>,
tls_parameters: Option<&'life1 ClientTlsParameters>
) -> Pin<Box<dyn Future<Output = Result<NetworkStream>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
[src]
addr: &'life0 SocketAddr,
timeout: Option<Duration>,
tls_parameters: Option<&'life1 ClientTlsParameters>
) -> Pin<Box<dyn Future<Output = Result<NetworkStream>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
fn upgrade_tls<'life0, 'async_trait>(
self,
tls_parameters: &'life0 ClientTlsParameters
) -> Pin<Box<dyn Future<Output = Result<Self>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
[src]
self,
tls_parameters: &'life0 ClientTlsParameters
) -> Pin<Box<dyn Future<Output = Result<Self>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,