#[non_exhaustive]pub enum TlsError {
ProtocolVersions,
PrivateKey,
DefaultProviderInstalled,
KeyMismatch,
StrictBuilderRequired {
entry_point: &'static str,
},
IncompatiblePeerVerifier {
expected: PeerVerifierIdentity,
actual: PeerVerifierIdentity,
},
PeerCertificate {
profile: Profile,
violation: PeerCertificateViolation,
},
}Expand description
Why a TLS configuration step was refused.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
ProtocolVersions
The provider refused the policy’s protocol versions.
PrivateKey
The private key was refused.
DefaultProviderInstalled
A process-default provider is already installed.
KeyMismatch
The certificate chain is empty, or its end-entity certificate does not carry the key.
StrictBuilderRequired
A rule-bearing policy requires a completion builder that installs its owned verifier.
IncompatiblePeerVerifier
The completion policy and verifier have incompatible identities.
Fields
§
expected: PeerVerifierIdentityThe completion policy’s identity.
§
actual: PeerVerifierIdentityThe supplied verifier’s identity.
PeerCertificate
A peer certificate failed its profile’s certificate rule.
Fields
§
violation: PeerCertificateViolationThe bounded refusal descriptor.
Trait Implementations§
impl Copy for TlsError
impl Eq for TlsError
Source§impl Error for TlsError
impl Error for TlsError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
impl StructuralPartialEq for TlsError
Auto Trait Implementations§
impl Freeze for TlsError
impl RefUnwindSafe for TlsError
impl Send for TlsError
impl Sync for TlsError
impl Unpin for TlsError
impl UnsafeUnpin for TlsError
impl UnwindSafe for TlsError
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