pub enum TlsConfiguration {
Simple {
ca: Vec<u8>,
alpn: Option<Vec<Vec<u8>>>,
client_auth: Option<(Vec<u8>, Vec<u8>)>,
},
SimpleNative {
ca: Vec<u8>,
client_auth: Option<(Vec<u8>, String)>,
},
Rustls(Arc<ClientConfig>),
Native,
}
Expand description
TLS configuration method
Variants§
Simple
Fields
SimpleNative
Fields
Rustls(Arc<ClientConfig>)
Injected rustls ClientConfig for TLS, to allow more customisation.
Native
Trait Implementations§
Source§impl Clone for TlsConfiguration
impl Clone for TlsConfiguration
Source§fn clone(&self) -> TlsConfiguration
fn clone(&self) -> TlsConfiguration
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for TlsConfiguration
impl Debug for TlsConfiguration
Source§impl Default for TlsConfiguration
impl Default for TlsConfiguration
Source§impl From<ClientConfig> for TlsConfiguration
impl From<ClientConfig> for TlsConfiguration
Source§fn from(config: ClientConfig) -> Self
fn from(config: ClientConfig) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for TlsConfiguration
impl !RefUnwindSafe for TlsConfiguration
impl Send for TlsConfiguration
impl Sync for TlsConfiguration
impl Unpin for TlsConfiguration
impl !UnwindSafe for TlsConfiguration
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