pub struct WorktreeGuard { /* private fields */ }Expand description
One leaf’s isolated worktree. Create with WorktreeGuard::create, always
finish with WorktreeGuard::cleanup (a sync best-effort Drop backstop
force-removes the directory if cleanup never ran — e.g. a panicking task).
Trait Implementations§
Source§impl Drop for WorktreeGuard
impl Drop for WorktreeGuard
Auto Trait Implementations§
impl Freeze for WorktreeGuard
impl RefUnwindSafe for WorktreeGuard
impl Send for WorktreeGuard
impl Sync for WorktreeGuard
impl Unpin for WorktreeGuard
impl UnsafeUnpin for WorktreeGuard
impl UnwindSafe for WorktreeGuard
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