pub enum ChecksumType {
Auto,
Xxhash64,
Xxhash32,
}Expand description
What checksum function to use for an entry.
Variants§
Auto
Choose xxhash64 or xxhash32 automatically based on data size.
Xxhash64
Use xxhash64 checksum algorithm. Efficient on 64bit platforms.
Xxhash32
Use xxhash32 checksum algorithm. It is slower than xxhash64 for 64bit platforms, but takes less space. Perhaps a good fit when entries are short.
Trait Implementations§
Source§impl Clone for ChecksumType
impl Clone for ChecksumType
Source§fn clone(&self) -> ChecksumType
fn clone(&self) -> ChecksumType
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 ChecksumType
impl Debug for ChecksumType
Source§impl PartialEq for ChecksumType
impl PartialEq for ChecksumType
impl Copy 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