pub enum Tls {
Disabled,
Enabled(CertificateAuthority),
}
Expand description
Options for full-connection encryption via TLS.
Variants
Disabled
No TLS encryption.
Enabled(CertificateAuthority)
Use TLS encryption, verifying the server’s certificate.
Implementations
sourceimpl Tls
impl Tls
sourcepub fn is_enabled(&self) -> bool
pub fn is_enabled(&self) -> bool
Returns true if TLS is enabled.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Tls
impl Send for Tls
impl Sync for Tls
impl Unpin for Tls
impl UnwindSafe for Tls
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more