pub struct BlobOrphanSweepConfig {
pub live_refs: HashSet<ContentRef>,
pub dry_run: bool,
}Expand description
Configuration for BlobStore::orphan_sweep.
live_refs is a point-in-time snapshot the caller assembles (this trait
has no visibility into SQL substrates — ADR-005 constraint 4), not a live
query. See BlobStore::orphan_sweep for the concurrency hazard this
implies, and crates/khive-storage/docs/api/blob-store.md for the full
rationale.
Fields§
§live_refs: HashSet<ContentRef>Content refs currently referenced by at least one live row somewhere
in the system, as of when the caller assembled this set. Anything
this backend stores that is NOT in this set is treated as orphaned
and deleted (or reported, in dry_run mode) — including a
content_ref that becomes live after this snapshot was taken.
dry_run: boolWhen true, report what would be deleted without deleting anything.
Trait Implementations§
Source§impl Clone for BlobOrphanSweepConfig
impl Clone for BlobOrphanSweepConfig
Source§fn clone(&self) -> BlobOrphanSweepConfig
fn clone(&self) -> BlobOrphanSweepConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for BlobOrphanSweepConfig
impl Debug for BlobOrphanSweepConfig
Source§impl Default for BlobOrphanSweepConfig
impl Default for BlobOrphanSweepConfig
Source§fn default() -> BlobOrphanSweepConfig
fn default() -> BlobOrphanSweepConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for BlobOrphanSweepConfig
impl<'de> Deserialize<'de> for BlobOrphanSweepConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for BlobOrphanSweepConfig
impl RefUnwindSafe for BlobOrphanSweepConfig
impl Send for BlobOrphanSweepConfig
impl Sync for BlobOrphanSweepConfig
impl Unpin for BlobOrphanSweepConfig
impl UnsafeUnpin for BlobOrphanSweepConfig
impl UnwindSafe for BlobOrphanSweepConfig
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