Struct rumqtt::SslContext
[−]
[src]
pub struct SslContext { pub inner: Arc<SslContext>, }
Fields
inner: Arc<SslContext>
Methods
impl SslContext
[src]
fn with_ca<CA>(ca: CA) -> Result<SslContext> where CA: AsRef<Path>
Create a new SslContext
with server authentication
fn with_cert_key_and_ca<C, K, CA>(cert: C, key: K, ca: CA) -> Result<SslContext> where C: AsRef<Path>, K: AsRef<Path>, CA: AsRef<Path>
Create a new SslContext
with client and server authentication
fn connect(&self, stream: TcpStream) -> Result<SslStream>
Create a new TLS1.2 connection
Trait Implementations
impl Clone for SslContext
[src]
fn clone(&self) -> SslContext
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl Debug for SslContext
[src]
impl Default for SslContext
[src]
fn default() -> SslContext
Returns the "default value" for a type. Read more