Struct paho_mqtt::ssl_options::SslOptions
source · [−]pub struct SslOptions { /* private fields */ }
Expand description
The options for SSL socket connections to the broker.
Implementations
sourceimpl SslOptions
impl SslOptions
sourcepub fn trust_store(&self) -> PathBuf
pub fn trust_store(&self) -> PathBuf
Set the name of the PEM file containing the public digital certificates trusted by the client.
sourcepub fn key_store(&self) -> PathBuf
pub fn key_store(&self) -> PathBuf
Get the name of the PEM file containing the public certificate chain of the client.
sourcepub fn private_key(&self) -> PathBuf
pub fn private_key(&self) -> PathBuf
The PEM file containing the client’s private key, if not included in the Key Store.
sourcepub fn enabled_cipher_suites(&self) -> String
pub fn enabled_cipher_suites(&self) -> String
Gets the list of cipher suites that the client will present to the server during the SSL handshake.
sourcepub fn enable_server_cert_auth(&self) -> bool
pub fn enable_server_cert_auth(&self) -> bool
Determine if the client will verify the server certificate.
sourcepub fn ca_path(&self) -> PathBuf
pub fn ca_path(&self) -> PathBuf
Gets the directory containing CA certificates in PEM format, if set.
sourcepub fn is_default_trust_store_disabled(&self) -> bool
pub fn is_default_trust_store_disabled(&self) -> bool
Determines if the default trust store should not be loaded.
sourcepub fn alpn_proto_vec(&self) -> &[c_uchar]
pub fn alpn_proto_vec(&self) -> &[c_uchar]
Gets the list of ALPN protocols available to be negotiated. This is in the wire format of the data.
Trait Implementations
sourceimpl Clone for SslOptions
impl Clone for SslOptions
sourceimpl Debug for SslOptions
impl Debug for SslOptions
sourceimpl Default for SslOptions
impl Default for SslOptions
impl Send for SslOptions
impl Sync for SslOptions
Auto Trait Implementations
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
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more