#[non_exhaustive]pub enum DigestAlgo {
Sha1,
Sha256,
Sha384,
}Expand description
An enum for all digest algorithms supported by the crate.
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.
Sha1
The SHA-1 digest algorithm.
Sha256
The SHA-256 digest algorithm.
Sha384
The SHA-384 digest algorithm.
Trait Implementations§
Source§impl Clone for DigestAlgo
impl Clone for DigestAlgo
Source§fn clone(&self) -> DigestAlgo
fn clone(&self) -> DigestAlgo
Returns a duplicate 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 DigestAlgo
impl Debug for DigestAlgo
Source§impl Display for DigestAlgo
impl Display for DigestAlgo
Source§impl FromStr for DigestAlgo
impl FromStr for DigestAlgo
Source§impl Hash for DigestAlgo
impl Hash for DigestAlgo
Source§impl PartialEq for DigestAlgo
impl PartialEq for DigestAlgo
impl Copy for DigestAlgo
impl Eq for DigestAlgo
impl StructuralPartialEq for DigestAlgo
Auto Trait Implementations§
impl Freeze for DigestAlgo
impl RefUnwindSafe for DigestAlgo
impl Send for DigestAlgo
impl Sync for DigestAlgo
impl Unpin for DigestAlgo
impl UnwindSafe for DigestAlgo
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