File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- //! Types and traits for TLS adaptors .
1+ //! Types and traits for TLS support .
22pub use priv_io:: Stream ;
33
44use std:: error:: Error ;
@@ -10,7 +10,7 @@ pub mod openssl;
1010#[ cfg( feature = "with-security-framework" ) ]
1111pub mod security_framework;
1212
13- /// A trait implemented by TLS adaptors .
13+ /// A trait implemented by TLS streams .
1414pub trait TlsStream : fmt:: Debug + Read + Write + Send {
1515 /// Returns a reference to the underlying `Stream`.
1616 fn get_ref ( & self ) -> & Stream ;
@@ -19,7 +19,8 @@ pub trait TlsStream: fmt::Debug + Read + Write + Send {
1919 fn get_mut ( & mut self ) -> & mut Stream ;
2020}
2121
22- /// A trait implemented by types that can negotiate TLS over a Postgres stream.
22+ /// A trait implemented by types that can initiate a TLS session over a Postgres
23+ /// stream.
2324pub trait TlsHandshake : fmt:: Debug {
2425 /// Performs a client-side TLS handshake, returning a wrapper around the
2526 /// provided stream.
You can’t perform that action at this time.
0 commit comments