pub enum ChecksumAlgorithm {
Crc32,
Crc32c,
Md5,
Sha1,
Sha256,
}
Expand description
We only support checksum calculation and validation for these checksum algorithms.
Variants§
Implementations§
Trait Implementations§
source§impl Clone for ChecksumAlgorithm
impl Clone for ChecksumAlgorithm
source§fn clone(&self) -> ChecksumAlgorithm
fn clone(&self) -> ChecksumAlgorithm
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 ChecksumAlgorithm
impl Debug for ChecksumAlgorithm
source§impl From<ChecksumAlgorithm> for HeaderName
impl From<ChecksumAlgorithm> for HeaderName
source§fn from(checksum_algorithm: ChecksumAlgorithm) -> Self
fn from(checksum_algorithm: ChecksumAlgorithm) -> Self
Converts to this type from the input type.
source§impl FromStr for ChecksumAlgorithm
impl FromStr for ChecksumAlgorithm
source§fn from_str(checksum_algorithm: &str) -> Result<Self, Self::Err>
fn from_str(checksum_algorithm: &str) -> Result<Self, Self::Err>
Create a new ChecksumAlgorithm
from an algorithm name. Valid algorithm names are:
- “crc32”
- “crc32c”
- “sha1”
- “sha256”
- “md5”
Passing an invalid name will return an error.
§type Err = UnknownChecksumAlgorithmError
type Err = UnknownChecksumAlgorithmError
The associated error which can be returned from parsing.
source§impl PartialEq<ChecksumAlgorithm> for ChecksumAlgorithm
impl PartialEq<ChecksumAlgorithm> for ChecksumAlgorithm
source§fn eq(&self, other: &ChecksumAlgorithm) -> bool
fn eq(&self, other: &ChecksumAlgorithm) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for ChecksumAlgorithm
impl Eq for ChecksumAlgorithm
impl StructuralEq for ChecksumAlgorithm
impl StructuralPartialEq for ChecksumAlgorithm
Auto Trait Implementations§
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