Implement traits for NoTls

Closes #495
This commit is contained in:
Steven Fackler 2019-10-08 04:25:06 -07:00
parent c92e95dac2
commit 3650d4a6de

View File

@ -71,6 +71,7 @@ pub trait TlsConnect<S> {
/// A `MakeTlsConnect` and `TlsConnect` implementation which simply returns an error.
///
/// This can be used when `sslmode` is `none` or `prefer`.
#[derive(Debug, Copy, Clone)]
pub struct NoTls;
#[cfg(feature = "runtime")]