pub enum TlsConfiguration {
Simple {
ca: Vec<u8>,
alpn: Option<Vec<Vec<u8>>>,
client_auth: Option<(Vec<u8>, Vec<u8>)>,
},
Rustls(Arc<ClientConfig>),
}Expand description
TLS configuration method
Variants§
Simple
Fields
Rustls(Arc<ClientConfig>)
Injected rustls ClientConfig for TLS, to allow more customisation.
Trait Implementations§
Source§impl Clone for TlsConfiguration
impl Clone for TlsConfiguration
Source§fn clone(&self) -> TlsConfiguration
fn clone(&self) -> TlsConfiguration
Returns a duplicate 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
Available on crate feature use-rustls only.
impl Default for TlsConfiguration
Available on crate feature
use-rustls only.Source§impl From<ClientConfig> for TlsConfiguration
Available on crate feature use-rustls only.
impl From<ClientConfig> for TlsConfiguration
Available on crate feature
use-rustls only.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