[−][src]Enum trust_dns_client::rr::dnssec::DigestType
This is the digest format for the
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 -
Variants
[RFC3658]
[RFC4509]
[RFC6605]
Undefined
This is a passthrough digest as ED25519 is self-packaged
Implementations
impl DigestType
[src]
pub fn from_u8(value: u8) -> Result<DigestType, ProtoError>
[src]
TODO: add an Unknown DigestType and make this infallible http://www.iana.org/assignments/dns-sec-alg-numbers/dns-sec-alg-numbers.xhtml
pub fn hash(self, &[u8]) -> Result<Vec<u8>, ProtoError>
[src]
This will always error, enable openssl feature at compile time
Trait Implementations
impl Clone for DigestType
[src]
pub fn clone(&self) -> DigestType
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for DigestType
[src]
impl Debug for DigestType
[src]
impl Eq for DigestType
[src]
impl From<Algorithm> for DigestType
[src]
pub fn from(a: Algorithm) -> DigestType
[src]
impl Hash for DigestType
[src]
pub fn hash<__H>(&self, state: &mut __H) where
__H: Hasher,
[src]
__H: Hasher,
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl Ord for DigestType
[src]
pub fn cmp(&self, other: &DigestType) -> Ordering
[src]
#[must_use]fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn clamp(self, min: Self, max: Self) -> Self
[src]
impl PartialEq<DigestType> for DigestType
[src]
pub fn eq(&self, other: &DigestType) -> bool
[src]
#[must_use]fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl PartialOrd<DigestType> for DigestType
[src]
pub fn partial_cmp(&self, other: &DigestType) -> Option<Ordering>
[src]
#[must_use]fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
impl StructuralEq for DigestType
[src]
impl StructuralPartialEq for DigestType
[src]
Auto Trait Implementations
impl RefUnwindSafe for DigestType
impl Send for DigestType
impl Sync for DigestType
impl Unpin for DigestType
impl UnwindSafe for DigestType
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,