#[non_exhaustive]pub enum DigestType {
SHA1,
SHA256,
SHA384,
Unknown(u8),
}
Available on crate features
dnssec-aws-lc-rs
or dnssec-ring
only.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 copy 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<'de> Deserialize<'de> for DigestType
impl<'de> Deserialize<'de> for DigestType
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<DigestType> for u8
impl From<DigestType> for u8
Source§fn from(a: DigestType) -> Self
fn from(a: DigestType) -> Self
Converts to this type from the input type.
Source§impl From<u8> for DigestType
impl From<u8> for DigestType
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
Source§impl Serialize for DigestType
impl Serialize for DigestType
Source§impl TryFrom<DigestType> for &'static Algorithm
impl TryFrom<DigestType> for &'static Algorithm
Source§type Error = ProtoError
type Error = ProtoError
The type returned in the event of a conversion error.
Source§fn try_from(value: DigestType) -> Result<&'static Algorithm, ProtoError>
fn try_from(value: DigestType) -> Result<&'static Algorithm, ProtoError>
Performs the conversion.
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 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.