pub struct RetiredSource<M: Memory> { /* private fields */ }Expand description
Exclusive cleanup authority for an entire source collection retired by cutover. Admission binds the exact transition and both database incarnations. Cleanup never opens the target and never clears the source’s retired manifest.
Implementations§
Source§impl<M: Memory> RetiredSource<M>
impl<M: Memory> RetiredSource<M>
Sourcepub fn resume(
memory: RuntimeMemory<M>,
expected: &SchemaTransition,
source_incarnation: [u8; 16],
target_incarnation: [u8; 16],
) -> Result<Self, Error>
pub fn resume( memory: RuntimeMemory<M>, expected: &SchemaTransition, source_incarnation: [u8; 16], target_incarnation: [u8; 16], ) -> Result<Self, Error>
Sourcepub fn cleanup_step(&mut self, limit: usize) -> Result<bool, Error>
pub fn cleanup_step(&mut self, limit: usize) -> Result<bool, Error>
Delete at most 1..=32 retired entries, preserving the ownership manifest. Return true when only that manifest remains. Repeated completion is a no-op. Deletion itself records progress; no additional cursor or phase is stored. This does not shrink physical memory, reset the allocation or reopen source.
§Errors
Refuses invalid limits before mutation.
§Panics
Supplier mutation failures trap; the IC rolls back the whole cleanup chunk.
Auto Trait Implementations§
impl<M> !RefUnwindSafe for RetiredSource<M>
impl<M> !Send for RetiredSource<M>
impl<M> !Sync for RetiredSource<M>
impl<M> !UnwindSafe for RetiredSource<M>
impl<M> Forget for RetiredSource<M>
impl<M> Freeze for RetiredSource<M>
impl<M> Move for RetiredSource<M>
impl<M> Unpin for RetiredSource<M>
impl<M> UnsafeUnpin for RetiredSource<M>
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