pub struct Identity { /* private fields */ }Expand description
A TLS certificate chain and the private key that signs for it, as PEM. One value, so neither half can be configured alone.
The bytes are read once and held, not re-read per connection: a worker group builds one of these before it spawns, so replacing the files on disk afterwards cannot leave two workers serving different identities.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Identity
impl RefUnwindSafe for Identity
impl Send for Identity
impl Sync for Identity
impl Unpin for Identity
impl UnsafeUnpin for Identity
impl UnwindSafe for Identity
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