#[non_exhaustive]pub enum DaneVerificationResult {
Verified {
matched_record: TlsaRecord,
},
NoRecords,
Mismatch {
records_checked: usize,
},
DnssecFailed,
Skipped,
}Expand description
Result of DANE verification.
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.
Verified
TLSA record matched the certificate.
Fields
§
matched_record: TlsaRecordThe TLSA record that matched.
NoRecords
No TLSA records found (not an error if policy is ValidateIfPresent).
Mismatch
TLSA records found but none matched.
DnssecFailed
DNSSEC validation failed.
Skipped
Verification was skipped (policy is Disabled).
Implementations§
Source§impl DaneVerificationResult
impl DaneVerificationResult
Sourcepub fn is_acceptable(&self, policy: DanePolicy) -> bool
pub fn is_acceptable(&self, policy: DanePolicy) -> bool
Check if verification passed or was appropriately skipped.
Trait Implementations§
Source§impl Clone for DaneVerificationResult
impl Clone for DaneVerificationResult
Source§fn clone(&self) -> DaneVerificationResult
fn clone(&self) -> DaneVerificationResult
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for DaneVerificationResult
impl RefUnwindSafe for DaneVerificationResult
impl Send for DaneVerificationResult
impl Sync for DaneVerificationResult
impl Unpin for DaneVerificationResult
impl UnsafeUnpin for DaneVerificationResult
impl UnwindSafe for DaneVerificationResult
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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