pub type ExtentValue = ExtentValueV38;
Expand description
ExtentValue is the payload for an extent in the object store, which describes where the extent is physically located.
Aliased Type§
enum ExtentValue {}
Variants§
Implementations§
Source§impl ExtentValue
impl ExtentValue
pub fn new(device_offset: u64, mode: ExtentMode, key_id: u64) -> ExtentValue
pub fn new_raw(device_offset: u64, key_id: u64) -> ExtentValue
Sourcepub fn with_checksum(
device_offset: u64,
checksums: Checksums,
key_id: u64,
) -> ExtentValue
pub fn with_checksum( device_offset: u64, checksums: Checksums, key_id: u64, ) -> ExtentValue
Creates an ExtentValue with a checksum
Sourcepub fn blank_overwrite_extent(
device_offset: u64,
num_blocks: usize,
key_id: u64,
) -> ExtentValue
pub fn blank_overwrite_extent( device_offset: u64, num_blocks: usize, key_id: u64, ) -> ExtentValue
Creates an ExtentValue for an overwrite range with no blocks written to yet.
Sourcepub fn initialized_overwrite_extent(
device_offset: u64,
key_id: u64,
) -> ExtentValue
pub fn initialized_overwrite_extent( device_offset: u64, key_id: u64, ) -> ExtentValue
Creates an ExtentValue for an overwrite range with all the blocks initialized.
Sourcepub fn deleted_extent() -> ExtentValue
pub fn deleted_extent() -> ExtentValue
Creates an ObjectValue for a deletion of an object extent.