pub enum Tls {
Native(TlsConnector),
Rust(ClientConfig),
}
Available on crate features
native-tls
or rustls
only.Expand description
TLS Configuration
Variants§
Native(TlsConnector)
Available on crate feature
native-tls
only.Native TLS configuration
Rust(ClientConfig)
Available on crate feature
rustls
only.Rustls configuration
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Tls
impl !RefUnwindSafe for Tls
impl Send for Tls
impl Sync for Tls
impl Unpin for Tls
impl !UnwindSafe for Tls
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more