pub enum SyncEvent {
FileCreated {
workspace_id: String,
path: PathBuf,
content: String,
},
FileModified {
workspace_id: String,
path: PathBuf,
content: String,
},
FileDeleted {
workspace_id: String,
path: PathBuf,
},
DirectoryChanged {
workspace_id: String,
changes: Vec<FileChange>,
},
}Will be extracted to mockforge-workspace crate
Expand description
File system synchronization events for workspace monitoring
Variants§
FileCreated
Will be extracted to mockforge-workspace crate
A new file was created in the watched directory
Fields
workspace_id: StringWill be extracted to mockforge-workspace crate
Workspace ID this file belongs to
FileModified
Will be extracted to mockforge-workspace crate
An existing file was modified in the watched directory
Fields
workspace_id: StringWill be extracted to mockforge-workspace crate
Workspace ID this file belongs to
FileDeleted
Will be extracted to mockforge-workspace crate
A file was deleted from the watched directory
Fields
DirectoryChanged
Will be extracted to mockforge-workspace crate
Multiple directory changes detected (batched summary)
Fields
workspace_id: StringWill be extracted to mockforge-workspace crate
Workspace ID where changes occurred
changes: Vec<FileChange>Will be extracted to mockforge-workspace crate
List of file changes detected
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SyncEvent
impl RefUnwindSafe for SyncEvent
impl Send for SyncEvent
impl Sync for SyncEvent
impl Unpin for SyncEvent
impl UnsafeUnpin for SyncEvent
impl UnwindSafe for SyncEvent
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more