Trait lettre::smtp::client::net::Connector

source ·
pub trait Connector: Sized {
    fn connect(
        addr: &SocketAddr,
        tls_parameters: Option<&ClientTlsParameters>
    ) -> Result<Self>; fn upgrade_tls(&mut self, tls_parameters: &ClientTlsParameters) -> Result<()>; fn is_encrypted(&self) -> bool; }
Expand description

A trait for the concept of opening a stream

Required Methods

Opens a connection to the given IP socket

Upgrades to TLS connection

Is the NetworkStream encrypted

Implementors