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 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.
Source§type Err = UnknownChecksumAlgorithmError
type Err = UnknownChecksumAlgorithmError
The associated error which can be returned from parsing.
Source§impl PartialEq for ChecksumAlgorithm
impl PartialEq for ChecksumAlgorithm
impl Copy for ChecksumAlgorithm
impl Eq 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Creates a shared type from an unshared type.