Function async_pop::connect

source ·
pub async fn connect<A: ToSocketAddrs>(
    addr: A,
    domain: &str,
    tls_connector: &TlsConnector,
    connection_timeout: Option<Duration>
) -> Result<Client<TlsStream<TcpStream>>>
Expand description

Create a new pop3 client with a tls connection.