#[non_exhaustive]pub enum DigestType {
SHA1,
SHA256,
SHA384,
}
Available on crate feature
dnssec-ring
only.Expand description
DNSSEC Delegation Signer (DS) Resource Record (RR) Type Digest Algorithms
0 Reserved - [RFC3658]
1 SHA-1 MANDATORY [RFC3658]
2 SHA-256 MANDATORY [RFC4509]
3 GOST R 34.11-94 OPTIONAL [RFC5933]
4 SHA-384 OPTIONAL [RFC6605]
5 ED25519 [RFC draft-ietf-curdle-dnskey-eddsa-03]
5-255 Unassigned -
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 &'static Algorithm
impl From<DigestType> for &'static Algorithm
Source§fn from(value: DigestType) -> &'static Algorithm
fn from(value: DigestType) -> &'static Algorithm
Converts to this type from the input type.
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 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<u8> for DigestType
impl TryFrom<u8> 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 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.