pub enum ChecksumAlgorithm {
Sha256,
Crc64nvme,
Crc32c,
}Expand description
Algorithm of a stored full-object checksum.
Every algorithm here covers the complete object. There is deliberately no
checksum-type field: full-object coverage is an invariant of this
format, established when the object is written, never read back from a
provider. (Cloudflare R2 never reports x-amz-checksum-type at all, so a
type read back would be unavailable exactly where it would matter.)
ChecksumAlgorithm::Sha256 and ChecksumAlgorithm::Crc64nvme both
have producers: every path that moves bytes through LoonFS hashes them,
and direct multipart upload carries the CRC-64/NVME the S3-compatible
providers compute over the assembled object. Crc32c decodes and
round-trips without a producer.
Variants§
Sha256
SHA-256 over the complete object.
Crc64nvme
CRC-64/NVME over the complete object.
Crc32c
CRC-32C over the complete object.
Implementations§
Trait Implementations§
Source§impl Clone for ChecksumAlgorithm
impl Clone for ChecksumAlgorithm
Source§fn clone(&self) -> ChecksumAlgorithm
fn clone(&self) -> ChecksumAlgorithm
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more