#[non_exhaustive]pub enum PeerCertificateViolation {
LeafKey(PeerKey),
ChainSignature(CertificateSignature),
IssuerKey(PeerKey),
Malformed,
}Expand description
Why a peer certificate failed the profile rule. Descriptors never carry DER or key bytes.
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.
LeafKey(PeerKey)
The leaf public key is outside the rule.
ChainSignature(CertificateSignature)
A selected-path certificate signature is outside the rule.
IssuerKey(PeerKey)
An issuer key, including an anchor signing its child, is outside the rule.
Malformed
Certificate key or algorithm parameters cannot be decoded.
Trait Implementations§
Source§impl Clone for PeerCertificateViolation
impl Clone for PeerCertificateViolation
impl Copy for PeerCertificateViolation
Source§impl Debug for PeerCertificateViolation
impl Debug for PeerCertificateViolation
Source§impl Display for PeerCertificateViolation
impl Display for PeerCertificateViolation
impl Eq for PeerCertificateViolation
Source§impl Error for PeerCertificateViolation
impl Error for PeerCertificateViolation
1.30.0 · 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()
Source§impl PartialEq for PeerCertificateViolation
impl PartialEq for PeerCertificateViolation
impl StructuralPartialEq for PeerCertificateViolation
Auto Trait Implementations§
impl Forget for PeerCertificateViolation
impl Freeze for PeerCertificateViolation
impl Move for PeerCertificateViolation
impl RefUnwindSafe for PeerCertificateViolation
impl Send for PeerCertificateViolation
impl Sync for PeerCertificateViolation
impl Unpin for PeerCertificateViolation
impl UnsafeUnpin for PeerCertificateViolation
impl UnwindSafe for PeerCertificateViolation
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