diff --git a/CHANGELOG.md b/CHANGELOG.md index dc8b97cd..016234f4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] - ReleaseDate +- Implement `Debug` trait for `Client` and `Connection`. + ## [0.1.6] - 2020-09-14 ### Changed - Changed `Client::get` to return `Option` in the non-error case to indicate hit vs miss. diff --git a/src/connection.rs b/src/connection.rs index f94d9242..1eea5ef6 100644 --- a/src/connection.rs +++ b/src/connection.rs @@ -7,6 +7,7 @@ use tokio::net::TcpStream; use crate::Error; +#[derive(Debug)] #[pin_project(project = ConnectionProjection)] pub enum Connection { Tcp(#[pin] BufReader>), diff --git a/src/lib.rs b/src/lib.rs index 2275de84..6303607f 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -21,6 +21,7 @@ pub use self::parser::{ErrorKind, KeyMetadata, MetadumpResponse, StatsResponse, /// /// [`Client`] is mapped one-to-one with a given connection to a memcached server, and provides a /// high-level API for executing commands on that connection. +#[derive(Debug)] pub struct Client { buf: BytesMut, last_read_n: Option,