pub enum IndexUpdate {
FileChanged {
path: PathBuf,
content: String,
},
FileDeleted {
path: PathBuf,
},
FullRescan,
Shutdown,
}Expand description
Messages sent to the background index worker
Variants§
FileChanged
A file was changed (content included for debouncing)
FileDeleted
A file was deleted
FullRescan
Request a full workspace rescan
Shutdown
Shutdown the worker
Trait Implementations§
Auto Trait Implementations§
impl Freeze for IndexUpdate
impl RefUnwindSafe for IndexUpdate
impl Send for IndexUpdate
impl Sync for IndexUpdate
impl Unpin for IndexUpdate
impl UnsafeUnpin for IndexUpdate
impl UnwindSafe for IndexUpdate
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