pub enum Algorithm {
Crc32,
Crc64,
Sha256,
Sha256Truncated,
}
Expand description
An algorithm to use for the context.
§CRC
CRC32
and CRC64
are only available if compiled with the default “crc” feature enabled.
If the library is compiled without this feature, but with the “ffi” feature (i.e. generates native libraries), then FFI requests for the CRC family of digests will instead use the default (Sha256Truncated
).
Variants§
Crc32
The 32 bit CRC checksum (requires default feature crc
)
Crc64
The 64 bit CRC checksum (requires default feature crc
)
Sha256
The SHA256 hash
Sha256Truncated
The SHA256 hash truncated to the first 64 bits
Trait Implementations§
impl Eq for Algorithm
impl StructuralPartialEq for Algorithm
Auto Trait Implementations§
impl Freeze for Algorithm
impl RefUnwindSafe for Algorithm
impl Send for Algorithm
impl Sync for Algorithm
impl Unpin for Algorithm
impl UnwindSafe for Algorithm
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