Enum mail_auth::common::crypto::HashAlgorithm
source · #[repr(u64)]pub enum HashAlgorithm {
Sha1 = 1,
Sha256 = 2,
}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 for HashAlgorithm
impl PartialEq 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 ==.impl Copy for HashAlgorithm
impl Eq for HashAlgorithm
impl StructuralPartialEq for HashAlgorithm
Auto Trait Implementations§
impl RefUnwindSafe for HashAlgorithm
impl Send for HashAlgorithm
impl Sync for HashAlgorithm
impl Unpin for HashAlgorithm
impl UnwindSafe for HashAlgorithm
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