Add documentation
This commit is contained in:
@@ -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<TcpStream>),
|
||||
}
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user