pub struct OutsideWork { /* private fields */ }Expand description
Work outside the cells that has begun (OutsideChanges::begin); dropping it without Self::record ends it
with nothing recorded.
Implementations§
Source§impl OutsideWork
impl OutsideWork
Sourcepub fn record<R>(
self,
root: &Path,
snapshot: &Snapshotter,
work: impl FnOnce() -> R,
) -> R
pub fn record<R>( self, root: &Path, snapshot: &Snapshotter, work: impl FnOnce() -> R, ) -> R
Run work, recording what it changed between pictures of root taken by snapshot before and after it.
Picture only what the work changes (Loki’s setup: .loki/): a cell’s own write elsewhere in that time
would otherwise be taken for the work’s and go unchecked.
Trait Implementations§
Source§impl Drop for OutsideWork
impl Drop for OutsideWork
Auto Trait Implementations§
impl Forget for OutsideWork
impl Freeze for OutsideWork
impl Move for OutsideWork
impl RefUnwindSafe for OutsideWork
impl Send for OutsideWork
impl Sync for OutsideWork
impl Unpin for OutsideWork
impl UnsafeUnpin for OutsideWork
impl UnwindSafe for OutsideWork
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