We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5758ccc commit 37b36e6Copy full SHA for 37b36e6
1 file changed
src/lib.rs
@@ -472,6 +472,16 @@ pub enum SslMode {
472
Require(Box<NegotiateSsl+std::marker::Sync+Send>),
473
}
474
475
+impl fmt::Debug for SslMode {
476
+ fn fmt(&self, fmt: &mut fmt::Formatter) -> fmt::Result {
477
+ match *self {
478
+ SslMode::None => fmt.write_str("None"),
479
+ SslMode::Prefer(..) => fmt.write_str("Prefer"),
480
+ SslMode::Require(..) => fmt.write_str("Require"),
481
+ }
482
483
+}
484
+
485
#[derive(Clone)]
486
struct CachedStatement {
487
name: String,
0 commit comments