pub struct CloneDurabilityBatch { /* private fields */ }Expand description
Path-scoped durability suppression for reconstructible clone writes.
The caller must first persist a clone-intent marker outside this scope and
must call commit only after hash-verifying the fetched
closure. Writes outside root retain their ordinary per-operation fsyncs.
Implementations§
Source§impl CloneDurabilityBatch
impl CloneDurabilityBatch
pub fn begin(root: impl AsRef<Path>) -> CloneDurabilityBatch
Sourcepub fn commit(&self) -> Result<(), Error>
pub fn commit(&self) -> Result<(), Error>
Flush every dirty file and directory on the destination filesystem in one kernel barrier. Refs remain unpublished while this runs.
pub fn barrier_count(&self) -> u64
pub fn skipped_barrier_count(&self) -> u64
Trait Implementations§
Source§impl Drop for CloneDurabilityBatch
impl Drop for CloneDurabilityBatch
Auto Trait Implementations§
impl Freeze for CloneDurabilityBatch
impl RefUnwindSafe for CloneDurabilityBatch
impl Send for CloneDurabilityBatch
impl Sync for CloneDurabilityBatch
impl Unpin for CloneDurabilityBatch
impl UnsafeUnpin for CloneDurabilityBatch
impl UnwindSafe for CloneDurabilityBatch
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