Enum mail_auth::common::crypto::HashAlgorithm
source · #[repr(u64)]
pub enum HashAlgorithm {
Sha1,
Sha256,
}Variants§
Implementations§
source§impl HashAlgorithm
impl HashAlgorithm
pub fn hash(&self, data: impl Writable) -> HashOutput
Trait Implementations§
source§impl Clone for HashAlgorithm
impl Clone for HashAlgorithm
source§fn clone(&self) -> HashAlgorithm
fn clone(&self) -> HashAlgorithm
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 HashAlgorithm
impl Debug for HashAlgorithm
source§impl From<Algorithm> for HashAlgorithm
impl From<Algorithm> for HashAlgorithm
source§impl From<HashAlgorithm> for u64
impl From<HashAlgorithm> for u64
source§fn from(v: HashAlgorithm) -> Self
fn from(v: HashAlgorithm) -> Self
Converts to this type from the input type.
source§impl PartialEq<HashAlgorithm> for HashAlgorithm
impl PartialEq<HashAlgorithm> for HashAlgorithm
source§fn eq(&self, other: &HashAlgorithm) -> bool
fn eq(&self, other: &HashAlgorithm) -> bool
This method tests for
self and other values to be equal, and is used
by ==.