pub struct WorktreeHandle {
pub worktree_id: WorktreeId,
pub root_path: PathBuf,
pub last_accessed: Instant,
pub status: WorktreeStatus,
}Expand description
Per-worktree state tracked by the RepoManager.
Fields§
§worktree_id: WorktreeIdStable identity for this worktree.
root_path: PathBufCanonical root path of the worktree on disk.
last_accessed: InstantMonotonic timestamp of the last access (used for LRU eviction).
status: WorktreeStatusCurrent operational status.
Trait Implementations§
Source§impl Clone for WorktreeHandle
impl Clone for WorktreeHandle
Source§fn clone(&self) -> WorktreeHandle
fn clone(&self) -> WorktreeHandle
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for WorktreeHandle
impl RefUnwindSafe for WorktreeHandle
impl Send for WorktreeHandle
impl Sync for WorktreeHandle
impl Unpin for WorktreeHandle
impl UnsafeUnpin for WorktreeHandle
impl UnwindSafe for WorktreeHandle
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