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>,
},
}Expand description
File system synchronization events for workspace monitoring
Variants§
FileCreated
A new file was created in the watched directory
Fields
FileModified
An existing file was modified in the watched directory
Fields
FileDeleted
A file was deleted from the watched directory
Fields
DirectoryChanged
Multiple directory changes detected (batched summary)
Fields
§
changes: Vec<FileChange>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 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
Mutably borrows from an owned value. Read more