pub struct Tls { /* private fields */ }Available on crate feature
tls only.Expand description
A loaded TLS configuration: a certificate chain, a private key, and either a client-certificate verifier or the absence of one.
Built by Tls::load during Server::start, so
a key that cannot be read, a key with permissions that make it not a
secret, and a certificate that does not match it are all startup
refusals rather than the first connection’s problem.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Tls
impl !UnwindSafe for Tls
impl Freeze for Tls
impl Send for Tls
impl Sync for Tls
impl Unpin for Tls
impl UnsafeUnpin for Tls
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