pub struct FsRepackOperation { /* private fields */ }Expand description
Compact native encoder wired behind the generic background repack seam.
It streams one object at a time (bounded memory), verifies every typed id and the exact expected object set, then installs the immutable replacement before retiring source packs under the pack-manager write lock. The scheduler itself has no native-pack knowledge.
Implementations§
Source§impl FsRepackOperation
impl FsRepackOperation
Sourcepub fn excluding_blob(self, hash: ContentHash) -> Self
pub fn excluding_blob(self, hash: ContentHash) -> Self
Exclude one blob from the replacement pack.
This is the storage primitive used by purge: cutover retires every source pack only after the replacement has been verified without the excluded identity.
Trait Implementations§
Source§impl RepackOperation for FsRepackOperation
impl RepackOperation for FsRepackOperation
Source§fn inspect(&self) -> Result<RepackInventory, RepackError>
fn inspect(&self) -> Result<RepackInventory, RepackError>
Cheap facts used by automatic trigger policy.
Source§fn run(&self, context: &RepackContext) -> Result<RepackOutcome, RepackError>
fn run(&self, context: &RepackContext) -> Result<RepackOutcome, RepackError>
Build, verify, and atomically publish replacement storage.
Auto Trait Implementations§
impl !Freeze for FsRepackOperation
impl !RefUnwindSafe for FsRepackOperation
impl !UnwindSafe for FsRepackOperation
impl Send for FsRepackOperation
impl Sync for FsRepackOperation
impl Unpin for FsRepackOperation
impl UnsafeUnpin for FsRepackOperation
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