pub struct DiskLayerExportPlan { /* private fields */ }Expand description
A contiguous suffix of an immutable checkpoint chain to include in an archive.
Unlike a runtime chain, every checkpoint layer is sealed. Its newest layer must not be subtracted as though it were the live writable head. Omitted layers are explicit dependencies.
Implementations§
Source§impl DiskLayerExportPlan
impl DiskLayerExportPlan
Sourcepub fn complete(checkpoint_layers: usize) -> Result<Self, LayerSelectionError>
pub fn complete(checkpoint_layers: usize) -> Result<Self, LayerSelectionError>
Include every physical layer, with no external disk-layer dependencies.
Sourcepub fn last(
checkpoint_layers: usize,
layers: usize,
) -> Result<Self, LayerSelectionError>
pub fn last( checkpoint_layers: usize, layers: usize, ) -> Result<Self, LayerSelectionError>
Include the newest layers immutable layers; explicitly require the preceding prefix.
Sourcepub fn since<T: PartialEq>(
target: &[T],
baseline: &[T],
) -> Result<Self, LayerSelectionError>
pub fn since<T: PartialEq>( target: &[T], baseline: &[T], ) -> Result<Self, LayerSelectionError>
Require an exact baseline prefix and include only later physical layers.
Supply comparable identity records containing both layer identity and interpretation metadata, not just filenames or logical parent IDs. Resolve archive-local backing paths before comparison. A compacted representation is not interchangeable with its old prefix.
Sourcepub fn included(&self) -> Range<usize> ⓘ
pub fn included(&self) -> Range<usize> ⓘ
Immutable payload layers to include, in oldest-first order.
Sourcepub fn required(&self) -> Range<usize> ⓘ
pub fn required(&self) -> Range<usize> ⓘ
Exact omitted prefix that the importer must resolve before publication or restore.
Sourcepub fn is_disk_complete(&self) -> bool
pub fn is_disk_complete(&self) -> bool
Whether the disk payload can be opened without an externally supplied prefix.
Trait Implementations§
Source§impl Clone for DiskLayerExportPlan
impl Clone for DiskLayerExportPlan
Source§fn clone(&self) -> DiskLayerExportPlan
fn clone(&self) -> DiskLayerExportPlan
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more