diff --git a/src/client/net.rs b/src/client/net.rs index c224fbd..cc3a150 100644 --- a/src/client/net.rs +++ b/src/client/net.rs @@ -28,11 +28,11 @@ impl Connector for NetworkStream { } } -/// TODO +/// Represents the different types of underlying network streams pub enum NetworkStream { - /// TODO + /// Plain TCP Plain(TcpStream), - /// TODO + /// SSL over TCP Ssl(SslStream), } diff --git a/src/lib.rs b/src/lib.rs index 3c2b7ac..72c27e0 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -77,6 +77,8 @@ //! .hello_name("my.hostname.tld") //! // Add credentials for authentication //! .credentials("username", "password") +//! // Use smtps, you can also specify a specific SSL context with `.ssl_context(context)` +//! .ssl() //! // Configure accepted authetication mecanisms //! .authentication_mecanisms(vec![Mecanism::CramMd5]) //! // Enable connection reuse