Skip to main content

read_inventory

Function read_inventory 

Source
pub fn read_inventory(
    layout: &BackupLayoutGuard,
    expected: &ArtifactChecksumRecord,
) -> Result<InventoryRecord, InventoryError>
Expand description

Read bounded validated local inventory under its original expected canonical digest.

This observes no remote membership or state. A failed/lost creation response may be reconciled by reading the exact declared digest, never overwriting it.

ยงErrors

Rejects unsafe/missing/oversized records, invalid declarations, digest mismatch and locks.