pub struct ClientTlsConfig<'a> {
pub client_cert: &'a Path,
pub client_key: &'a Path,
pub ca_cert: &'a Path,
pub server_name: &'a str,
pub default_durability: Option<Durability>,
}Expand description
TLS configuration for WeirClient::connect_tls.
Debug/Clone are safe to derive: every field is a path, a borrowed str,
or a Durability — no key material, only filesystem paths (G16).
Fields§
§client_cert: &'a PathPath to the PEM-encoded client certificate file.
client_key: &'a PathPath to the PEM-encoded client private key file.
ca_cert: &'a PathPath to the PEM-encoded CA certificate used to verify the server cert.
server_name: &'a strDNS name the server certificate must present (matched against its SAN).
default_durability: Option<Durability>Optional default durability tier for WeirClient::push_default.
Trait Implementations§
Source§impl<'a> Clone for ClientTlsConfig<'a>
impl<'a> Clone for ClientTlsConfig<'a>
Auto Trait Implementations§
impl<'a> Freeze for ClientTlsConfig<'a>
impl<'a> RefUnwindSafe for ClientTlsConfig<'a>
impl<'a> Send for ClientTlsConfig<'a>
impl<'a> Sync for ClientTlsConfig<'a>
impl<'a> Unpin for ClientTlsConfig<'a>
impl<'a> UnsafeUnpin for ClientTlsConfig<'a>
impl<'a> UnwindSafe for ClientTlsConfig<'a>
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