Enum hawk::DigestAlgorithm
source · #[non_exhaustive]pub enum DigestAlgorithm {
Sha256,
Sha384,
Sha512,
}
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 DigestAlgorithm
impl Clone for DigestAlgorithm
source§fn clone(&self) -> DigestAlgorithm
fn clone(&self) -> DigestAlgorithm
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 DigestAlgorithm
impl Debug for DigestAlgorithm
source§impl Hash for DigestAlgorithm
impl Hash for DigestAlgorithm
source§impl Ord for DigestAlgorithm
impl Ord for DigestAlgorithm
source§fn cmp(&self, other: &DigestAlgorithm) -> Ordering
fn cmp(&self, other: &DigestAlgorithm) -> 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 DigestAlgorithm
impl PartialEq for DigestAlgorithm
source§fn eq(&self, other: &DigestAlgorithm) -> bool
fn eq(&self, other: &DigestAlgorithm) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for DigestAlgorithm
impl PartialOrd for DigestAlgorithm
source§fn partial_cmp(&self, other: &DigestAlgorithm) -> Option<Ordering>
fn partial_cmp(&self, other: &DigestAlgorithm) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl TryFrom<DigestAlgorithm> for &'static Algorithm
impl TryFrom<DigestAlgorithm> for &'static Algorithm
§type Error = CryptoError
type Error = CryptoError
The type returned in the event of a conversion error.
source§fn try_from(algorithm: DigestAlgorithm) -> Result<Self, CryptoError>
fn try_from(algorithm: DigestAlgorithm) -> Result<Self, CryptoError>
Performs the conversion.
source§impl TryFrom<DigestAlgorithm> for Algorithm
impl TryFrom<DigestAlgorithm> for Algorithm
§type Error = CryptoError
type Error = CryptoError
The type returned in the event of a conversion error.
source§fn try_from(algorithm: DigestAlgorithm) -> Result<Self, CryptoError>
fn try_from(algorithm: DigestAlgorithm) -> Result<Self, CryptoError>
Performs the conversion.
impl Copy for DigestAlgorithm
impl Eq for DigestAlgorithm
impl StructuralEq for DigestAlgorithm
impl StructuralPartialEq for DigestAlgorithm
Auto Trait Implementations§
impl RefUnwindSafe for DigestAlgorithm
impl Send for DigestAlgorithm
impl Sync for DigestAlgorithm
impl Unpin for DigestAlgorithm
impl UnwindSafe for DigestAlgorithm
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