Enum trust_dns::rr::dnssec::DigestType [] [src]

pub enum DigestType {
    SHA1,
    SHA256,
    SHA384,
    SHA512,
}

Variants

SHA1
SHA256
SHA384
SHA512

Methods

impl DigestType

fn from_u8(value: u8) -> DecodeResult<Self>

fn to_hash(&self) -> Type

fn hash(&self, data: &[u8]) -> Vec<u8>

Trait Implementations

impl From<Algorithm> for DigestType

fn from(a: Algorithm) -> DigestType

Derived Implementations

impl Debug for DigestType

fn fmt(&self, __arg_0: &mut Formatter) -> Result

impl Ord for DigestType

fn cmp(&self, __arg_0: &DigestType) -> Ordering

impl PartialOrd for DigestType

fn partial_cmp(&self, __arg_0: &DigestType) -> Option<Ordering>

1.0.0fn lt(&self, other: &Rhs) -> bool

1.0.0fn le(&self, other: &Rhs) -> bool

1.0.0fn gt(&self, other: &Rhs) -> bool

1.0.0fn ge(&self, other: &Rhs) -> bool

impl Hash for DigestType

fn hash<__H: Hasher>(&self, __arg_0: &mut __H)

1.3.0fn hash_slice<H>(data: &[Self], state: &mut H) where H: Hasher

impl Eq for DigestType

impl PartialEq for DigestType

fn eq(&self, __arg_0: &DigestType) -> bool

1.0.0fn ne(&self, other: &Rhs) -> bool

impl Copy for DigestType

impl Clone for DigestType

fn clone(&self) -> DigestType

1.0.0fn clone_from(&mut self, source: &Self)