pub enum StreamingChecksum {
Sha256(Sha256),
Crc64nvme(Crc64Nvme),
Crc32c(Crc32c),
}Expand description
An incremental checksum for streamed reads and writes.
Variants§
Sha256(Sha256)
SHA-256 folded over the payload.
Crc64nvme(Crc64Nvme)
CRC-64/NVME folded over the payload.
Crc32c(Crc32c)
CRC-32C folded over the payload.
Implementations§
Source§impl StreamingChecksum
impl StreamingChecksum
Sourcepub fn for_algorithm(algorithm: ChecksumAlgorithm) -> Self
pub fn for_algorithm(algorithm: ChecksumAlgorithm) -> Self
Starts an empty digest for algorithm.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for StreamingChecksum
impl RefUnwindSafe for StreamingChecksum
impl Send for StreamingChecksum
impl Sync for StreamingChecksum
impl Unpin for StreamingChecksum
impl UnsafeUnpin for StreamingChecksum
impl UnwindSafe for StreamingChecksum
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