pub enum FileWatchEvent {
Modified {
file: FileBuffer,
old_content: String,
},
Deleted {
file: FileBuffer,
},
Created {
file: FileBuffer,
},
Raw {
event: Event,
},
}Expand description
Events that can occur during file watching
Variants§
Modified
File was modified
Deleted
File was deleted
Fields
§
file: FileBufferCreated
File was created
Fields
§
file: FileBufferRaw
Raw filesystem event for custom handling
Trait Implementations§
Source§impl Clone for FileWatchEvent
impl Clone for FileWatchEvent
Source§fn clone(&self) -> FileWatchEvent
fn clone(&self) -> FileWatchEvent
Returns a duplicate of the value. Read more
1.0.0 · 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 FileWatchEvent
impl RefUnwindSafe for FileWatchEvent
impl Send for FileWatchEvent
impl Sync for FileWatchEvent
impl Unpin for FileWatchEvent
impl UnwindSafe for FileWatchEvent
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