Enum rumqttc::TlsConfiguration
source · [−]pub enum TlsConfiguration {
Simple {
ca: Vec<u8>,
alpn: Option<Vec<Vec<u8>>>,
client_auth: Option<(Vec<u8>, Key)>,
},
Rustls(Arc<ClientConfig>),
}
Variants
Simple
Fields
Rustls(Arc<ClientConfig>)
Injected rustls ClientConfig for TLS, to allow more customisation.
Trait Implementations
sourceimpl Clone for TlsConfiguration
impl Clone for TlsConfiguration
sourcefn clone(&self) -> TlsConfiguration
fn clone(&self) -> TlsConfiguration
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl From<ClientConfig> for TlsConfiguration
impl From<ClientConfig> for TlsConfiguration
sourcefn from(config: ClientConfig) -> Self
fn from(config: ClientConfig) -> Self
Converts to this type from the input type.
Auto Trait Implementations
impl !RefUnwindSafe for TlsConfiguration
impl Send for TlsConfiguration
impl Sync for TlsConfiguration
impl Unpin for TlsConfiguration
impl !UnwindSafe for TlsConfiguration
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