pub struct MirrorInitGuard { /* private fields */ }Expand description
RAII guard for init_mirror. When the mirror directory did not
exist at acquisition time, an early Drop (panic, error return)
removes the partially-initialized .heddle/git/ so a future
heddle export git ... doesn’t see a half-built bare repo. Call
commit() once the mirror is known-good (e.g. after a successful
first export) to disarm the guard.
Implementations§
Trait Implementations§
Source§impl Drop for MirrorInitGuard
impl Drop for MirrorInitGuard
Auto Trait Implementations§
impl Freeze for MirrorInitGuard
impl RefUnwindSafe for MirrorInitGuard
impl Send for MirrorInitGuard
impl Sync for MirrorInitGuard
impl Unpin for MirrorInitGuard
impl UnsafeUnpin for MirrorInitGuard
impl UnwindSafe for MirrorInitGuard
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