Skip to content

Commit 0441c75

Browse files
committed
Doc tweaks
1 parent ccf94ad commit 0441c75

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

src/io/mod.rs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//! Types and traits for TLS adaptors.
1+
//! Types and traits for TLS support.
22
pub use priv_io::Stream;
33

44
use std::error::Error;
@@ -10,7 +10,7 @@ pub mod openssl;
1010
#[cfg(feature = "with-security-framework")]
1111
pub mod security_framework;
1212

13-
/// A trait implemented by TLS adaptors.
13+
/// A trait implemented by TLS streams.
1414
pub 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.
2324
pub trait TlsHandshake: fmt::Debug {
2425
/// Performs a client-side TLS handshake, returning a wrapper around the
2526
/// provided stream.

0 commit comments

Comments
 (0)