Enum nethsm::ConnectionSecurity
source · pub enum ConnectionSecurity {
Unsafe,
Native,
Fingerprints(HostCertificateFingerprints),
}Expand description
The security model chosen for a crate::NetHsm’s TLS connection
Variants§
Unsafe
Always trust the TLS certificate associated with a host
Native
Use the native trust store to evaluate the trust of a host
Fingerprints(HostCertificateFingerprints)
Use a list of checksums (fingerprints) to verify a host’s TLS certificate
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ConnectionSecurity
impl RefUnwindSafe for ConnectionSecurity
impl Send for ConnectionSecurity
impl Sync for ConnectionSecurity
impl Unpin for ConnectionSecurity
impl UnwindSafe for ConnectionSecurity
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