#[non_exhaustive]pub enum DigestType {
SHA1,
SHA256,
SHA384,
Unknown(u8),
}Expand description
DNSSEC Delegation Signer (DS) Resource Record (RR) Type Digest Algorithms
Value Description Status Reference
0 Reserved - [RFC3658]
1 SHA-1 MANDATORY [RFC3658]
2 SHA-256 MANDATORY [RFC4509]
3 GOST R 34.11-94 DEPRECATED [RFC5933][Change the status of GOST Signature Algorithms in DNSSEC in the IETF stream to Historic]
4 SHA-384 OPTIONAL [RFC6605]
5 GOST R 34.11-2012 OPTIONAL [RFC9558]
6 SM3 OPTIONAL [RFC9563]https://www.iana.org/assignments/ds-rr-types/ds-rr-types.xhtml
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.
Trait Implementations§
Source§impl Clone for DigestType
impl Clone for DigestType
Source§fn clone(&self) -> DigestType
fn clone(&self) -> DigestType
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 moreSource§impl Debug for DigestType
impl Debug for DigestType
Source§impl From<u8> for DigestType
impl From<u8> for DigestType
Source§fn from(value: u8) -> DigestType
fn from(value: u8) -> DigestType
Converts to this type from the input type.
Source§impl Hash for DigestType
impl Hash for DigestType
Source§impl Ord for DigestType
impl Ord for DigestType
Source§fn cmp(&self, other: &DigestType) -> Ordering
fn cmp(&self, other: &DigestType) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for DigestType
impl PartialEq for DigestType
Source§impl PartialOrd for DigestType
impl PartialOrd for DigestType
impl Copy for DigestType
impl Eq for DigestType
impl StructuralPartialEq for DigestType
Auto Trait Implementations§
impl Freeze for DigestType
impl RefUnwindSafe for DigestType
impl Send for DigestType
impl Sync for DigestType
impl Unpin for DigestType
impl UnsafeUnpin for DigestType
impl UnwindSafe for DigestType
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.