tokio-rustls: Derive Debug for tokio_rustls::TlsStream (#45)

This commit is contained in:
Roman Titov 2020-12-14 17:40:01 +03:00 committed by GitHub
parent 5ea7060a45
commit e40608bfeb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -194,6 +194,7 @@ impl<IO: AsyncRead + AsyncWrite + Unpin> Future for FailableAccept<IO> {
/// ///
/// This abstracts over the inner `client::TlsStream` and `server::TlsStream`, so you can use /// This abstracts over the inner `client::TlsStream` and `server::TlsStream`, so you can use
/// a single type to keep both client- and server-initiated TLS-encrypted connections. /// a single type to keep both client- and server-initiated TLS-encrypted connections.
#[derive(Debug)]
pub enum TlsStream<T> { pub enum TlsStream<T> {
Client(client::TlsStream<T>), Client(client::TlsStream<T>),
Server(server::TlsStream<T>), Server(server::TlsStream<T>),