From e40608bfebfd91505590fc85e053e9ebb03bd7b3 Mon Sep 17 00:00:00 2001 From: Roman Titov Date: Mon, 14 Dec 2020 17:40:01 +0300 Subject: [PATCH] tokio-rustls: Derive `Debug` for `tokio_rustls::TlsStream` (#45) --- tokio-rustls/src/lib.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/tokio-rustls/src/lib.rs b/tokio-rustls/src/lib.rs index 29af923..8f07b58 100644 --- a/tokio-rustls/src/lib.rs +++ b/tokio-rustls/src/lib.rs @@ -194,6 +194,7 @@ impl Future for FailableAccept { /// /// 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. +#[derive(Debug)] pub enum TlsStream { Client(client::TlsStream), Server(server::TlsStream),