pub enum IndexUpdate {
FileChanged {
path: PathBuf,
content: String,
},
FileRemoved {
path: PathBuf,
},
FullRescan,
Shutdown,
}Expand description
Messages sent to the background index worker
Variants§
FileChanged
A file was changed (content included for debouncing)
FileRemoved
A path stopped being one the index covers, because the file was deleted or because an ignore or exclude rule began matching it.
An ignore rule never reaches here for a document an editor holds, which is answered from its buffer instead. A deletion does: an entry says the file exists with these anchors, and a link to a file that is gone is a link to nothing however long the editor keeps showing it.
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