pub struct StateSnapshot {
pub files: HashMap<PathBuf, FileStatus>,
pub locks: HashMap<String, String>,
pub git_state: GitState,
pub active_operations: Vec<String>,
}Expand description
Snapshot of current state
Fields§
§files: HashMap<PathBuf, FileStatus>All tracked files and their status.
locks: HashMap<String, String>Current resource locks (resource -> holder agent).
git_state: GitStateCurrent git repository state.
active_operations: Vec<String>IDs of currently active operations.
Trait Implementations§
Source§impl Clone for StateSnapshot
impl Clone for StateSnapshot
Source§fn clone(&self) -> StateSnapshot
fn clone(&self) -> StateSnapshot
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 StateSnapshot
impl RefUnwindSafe for StateSnapshot
impl Send for StateSnapshot
impl Sync for StateSnapshot
impl Unpin for StateSnapshot
impl UnsafeUnpin for StateSnapshot
impl UnwindSafe for StateSnapshot
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