Struct tokio_nsq::NSQConfigSharedTLS
source · pub struct NSQConfigSharedTLS { /* private fields */ }
Expand description
NSQD TLS encryption options
Implementations§
sourcepub fn new<S: Into<String>>(domain: S) -> Self
pub fn new<S: Into<String>>(domain: S) -> Self
Construct a TLS configuration object. Defaults are insecure.
sourcepub fn set_required(self, required: bool) -> Self
pub fn set_required(self, required: bool) -> Self
If the connection should fail if TLS is not supported. Defaults to true.
sourcepub fn set_client_config(self, client_config: Arc<ClientConfig>) -> Self
pub fn set_client_config(self, client_config: Arc<ClientConfig>) -> Self
Set TLS configuration object from rustls
crate.
Trait Implementations§
source§fn clone(&self) -> NSQConfigSharedTLS
fn clone(&self) -> NSQConfigSharedTLS
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 moreAuto Trait Implementations§
Blanket Implementations§
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more