pub enum RelintRequest {
File(PathBuf),
AllOpen,
}Expand description
A request from the background index worker asking the server to publish a document’s diagnostics again.
Cross-file diagnostics are computed from the workspace index, so their answers can change with no editor event to recompute them: the file that changed is a different one, or the change is the initial scan finishing after a document was already opened and linted without it.
Variants§
File(PathBuf)
Re-lint this file, if the editor has it open.
AllOpen
Re-lint every open document, for a change to the index as a whole that no per-file request describes.
Trait Implementations§
Source§impl Clone for RelintRequest
impl Clone for RelintRequest
Source§fn clone(&self) -> RelintRequest
fn clone(&self) -> RelintRequest
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RelintRequest
impl Debug for RelintRequest
impl Eq for RelintRequest
Source§impl PartialEq for RelintRequest
impl PartialEq for RelintRequest
impl StructuralPartialEq for RelintRequest
Auto Trait Implementations§
impl Freeze for RelintRequest
impl RefUnwindSafe for RelintRequest
impl Send for RelintRequest
impl Sync for RelintRequest
impl Unpin for RelintRequest
impl UnsafeUnpin for RelintRequest
impl UnwindSafe for RelintRequest
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.