pub enum ChecksumAlgorithm {
Sha1,
Sha256,
Sha512,
Sha3_256,
Sha3_512,
}Expand description
A cryptographic hash function used to compute a data block’s checksum
Variants§
Sha1
The SHA-1 cryptographic hash function
Sha256
The SHA-256 cryptographic hash function
Sha512
The SHA-512 cryptographic hash function
Sha3_256
The SHA3-256 cryptographic hash function
Sha3_512
The SHA3-512 cryptographic hash function
Trait Implementations§
Source§impl Clone for ChecksumAlgorithm
impl Clone for ChecksumAlgorithm
Source§fn clone(&self) -> ChecksumAlgorithm
fn clone(&self) -> ChecksumAlgorithm
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 ChecksumAlgorithm
impl Debug for ChecksumAlgorithm
Source§impl Display for ChecksumAlgorithm
impl Display for ChecksumAlgorithm
Source§impl FromStr for ChecksumAlgorithm
impl FromStr for ChecksumAlgorithm
Source§impl PartialEq for ChecksumAlgorithm
impl PartialEq for ChecksumAlgorithm
Source§impl TryFrom<&str> for ChecksumAlgorithm
impl TryFrom<&str> for ChecksumAlgorithm
Source§impl VariantNames for ChecksumAlgorithm
impl VariantNames for ChecksumAlgorithm
impl Copy for ChecksumAlgorithm
impl StructuralPartialEq for ChecksumAlgorithm
Auto Trait Implementations§
impl Freeze for ChecksumAlgorithm
impl RefUnwindSafe for ChecksumAlgorithm
impl Send for ChecksumAlgorithm
impl Sync for ChecksumAlgorithm
impl Unpin for ChecksumAlgorithm
impl UnwindSafe for ChecksumAlgorithm
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