#[repr(u16)]pub enum ChecksumType {
CRC32C = 0,
XXHASH64 = 1,
SHA256 = 2,
BLAKE2b = 3,
}
Expand description
The hashing algorithm used for checksumming.
Variants§
Trait Implementations§
Source§impl Clone for ChecksumType
impl Clone for ChecksumType
Source§fn clone(&self) -> ChecksumType
fn clone(&self) -> ChecksumType
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 ChecksumType
impl Debug for ChecksumType
Source§impl From<ChecksumType> for u16
impl From<ChecksumType> for u16
Source§fn from(enum_value: ChecksumType) -> Self
fn from(enum_value: ChecksumType) -> Self
Converts to this type from the input type.
Source§impl Hash for ChecksumType
impl Hash for ChecksumType
Source§impl IntoEnumIterator for ChecksumType
impl IntoEnumIterator for ChecksumType
type Iterator = ChecksumTypeIter
fn iter() -> ChecksumTypeIter ⓘ
Source§impl KnownLayout for ChecksumTypewhere
Self: Sized,
impl KnownLayout for ChecksumTypewhere
Self: Sized,
Source§type PointerMetadata = ()
type PointerMetadata = ()
The type of metadata stored in a pointer to
Self
. Read moreSource§impl PartialEq for ChecksumType
impl PartialEq for ChecksumType
Source§impl TryFrom<u16> for ChecksumType
impl TryFrom<u16> for ChecksumType
Source§type Error = TryFromPrimitiveError<ChecksumType>
type Error = TryFromPrimitiveError<ChecksumType>
The type returned in the event of a conversion error.
Source§impl TryFromBytes for ChecksumType
impl TryFromBytes for ChecksumType
Source§fn try_mut_from_bytes(
bytes: &mut [u8],
) -> Result<&mut Self, ConvertError<AlignmentError<&mut [u8], Self>, SizeError<&mut [u8], Self>, ValidityError<&mut [u8], Self>>>where
Self: KnownLayout + IntoBytes,
fn try_mut_from_bytes(
bytes: &mut [u8],
) -> Result<&mut Self, ConvertError<AlignmentError<&mut [u8], Self>, SizeError<&mut [u8], Self>, ValidityError<&mut [u8], Self>>>where
Self: KnownLayout + IntoBytes,
Source§fn try_mut_from_prefix(
source: &mut [u8],
) -> Result<(&mut Self, &mut [u8]), ConvertError<AlignmentError<&mut [u8], Self>, SizeError<&mut [u8], Self>, ValidityError<&mut [u8], Self>>>where
Self: KnownLayout + IntoBytes,
fn try_mut_from_prefix(
source: &mut [u8],
) -> Result<(&mut Self, &mut [u8]), ConvertError<AlignmentError<&mut [u8], Self>, SizeError<&mut [u8], Self>, ValidityError<&mut [u8], Self>>>where
Self: KnownLayout + IntoBytes,
Source§fn try_mut_from_suffix(
source: &mut [u8],
) -> Result<(&mut [u8], &mut Self), ConvertError<AlignmentError<&mut [u8], Self>, SizeError<&mut [u8], Self>, ValidityError<&mut [u8], Self>>>where
Self: KnownLayout + IntoBytes,
fn try_mut_from_suffix(
source: &mut [u8],
) -> Result<(&mut [u8], &mut Self), ConvertError<AlignmentError<&mut [u8], Self>, SizeError<&mut [u8], Self>, ValidityError<&mut [u8], Self>>>where
Self: KnownLayout + IntoBytes,
Source§fn try_read_from_bytes(
source: &[u8],
) -> Result<Self, ConvertError<Infallible, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>where
Self: Sized,
fn try_read_from_bytes(
source: &[u8],
) -> Result<Self, ConvertError<Infallible, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>where
Self: Sized,
Source§fn try_read_from_prefix(
source: &[u8],
) -> Result<(Self, &[u8]), ConvertError<Infallible, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>where
Self: Sized,
fn try_read_from_prefix(
source: &[u8],
) -> Result<(Self, &[u8]), ConvertError<Infallible, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>where
Self: Sized,
Source§fn try_read_from_suffix(
source: &[u8],
) -> Result<(&[u8], Self), ConvertError<Infallible, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>where
Self: Sized,
fn try_read_from_suffix(
source: &[u8],
) -> Result<(&[u8], Self), ConvertError<Infallible, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>where
Self: Sized,
Source§impl TryFromPrimitive for ChecksumType
impl TryFromPrimitive for ChecksumType
const NAME: &'static str = "ChecksumType"
type Primitive = u16
type Error = TryFromPrimitiveError<ChecksumType>
fn try_from_primitive( number: Self::Primitive, ) -> Result<Self, TryFromPrimitiveError<Self>>
impl Copy for ChecksumType
impl IntoBytes for ChecksumType
impl StructuralPartialEq for ChecksumType
Auto Trait Implementations§
impl Freeze for ChecksumType
impl RefUnwindSafe for ChecksumType
impl Send for ChecksumType
impl Sync for ChecksumType
impl Unpin for ChecksumType
impl UnwindSafe for ChecksumType
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