pub struct FileModificationTracker { /* private fields */ }Expand description
Tracks file modifications across agents and detects conflicts.
A conflict occurs when two different agents modify the same file within the same correlation tree (delegation chain) within a configurable time window.
Implementations§
Source§impl FileModificationTracker
impl FileModificationTracker
Sourcepub fn new(window_ms: u64) -> Self
pub fn new(window_ms: u64) -> Self
Create a new tracker with the given conflict detection window.
Sourcepub fn record_modification(
&self,
file_path: &str,
agent_id: &str,
run_id: &str,
correlation_id: &str,
) -> Option<RegressionWarning>
pub fn record_modification( &self, file_path: &str, agent_id: &str, run_id: &str, correlation_id: &str, ) -> Option<RegressionWarning>
Record a file modification and check for conflicts.
Returns Some(RegressionWarning) if another agent in the same
correlation tree modified this file within the detection window.
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for FileModificationTracker
impl RefUnwindSafe for FileModificationTracker
impl Send for FileModificationTracker
impl Sync for FileModificationTracker
impl Unpin for FileModificationTracker
impl UnsafeUnpin for FileModificationTracker
impl UnwindSafe for FileModificationTracker
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