#[non_exhaustive]pub enum ResponseChecksumAlgorithm {
Crc32,
Crc32c,
Crc64Nvme,
Sha1,
Sha256,
Unknown(UnknownAlgorithm),
}Expand description
A response checksum algorithm.
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.
Crc32
CRC32.
Crc32c
CRC32C.
Crc64Nvme
CRC64NVME.
Sha1
SHA-1.
Sha256
SHA-256.
Unknown(UnknownAlgorithm)
An algorithm this release does not know. Read its name with
as_str.
Implementations§
Trait Implementations§
Source§impl Clone for ResponseChecksumAlgorithm
impl Clone for ResponseChecksumAlgorithm
Source§fn clone(&self) -> ResponseChecksumAlgorithm
fn clone(&self) -> ResponseChecksumAlgorithm
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ResponseChecksumAlgorithm
Source§impl Debug for ResponseChecksumAlgorithm
impl Debug for ResponseChecksumAlgorithm
impl Eq for ResponseChecksumAlgorithm
Source§impl Hash for ResponseChecksumAlgorithm
impl Hash for ResponseChecksumAlgorithm
impl StructuralPartialEq for ResponseChecksumAlgorithm
Auto Trait Implementations§
impl Freeze for ResponseChecksumAlgorithm
impl RefUnwindSafe for ResponseChecksumAlgorithm
impl Send for ResponseChecksumAlgorithm
impl Sync for ResponseChecksumAlgorithm
impl Unpin for ResponseChecksumAlgorithm
impl UnsafeUnpin for ResponseChecksumAlgorithm
impl UnwindSafe for ResponseChecksumAlgorithm
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> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreCreates a shared type from an unshared type.