pub struct DirtyFiles { /* private fields */ }Expand description
Thread-safe set of file paths known to be dirty (changed since last index).
Implementations§
Source§impl DirtyFiles
impl DirtyFiles
pub fn new() -> Self
Sourcepub fn mark_dirty(&self, rel_path: String)
pub fn mark_dirty(&self, rel_path: String)
Mark a relative path as dirty.
Sourcepub fn is_dirty(&self, rel_path: &str) -> bool
pub fn is_dirty(&self, rel_path: &str) -> bool
Check if a relative path is dirty.
Returns true if the file is known to have changed, or if the watcher
is poisoned (overflow occurred).
Sourcepub fn clear(&self)
pub fn clear(&self)
Clear all dirty entries and reset poison flag.
Called after re-indexing (krait init).
Sourcepub fn is_poisoned(&self) -> bool
pub fn is_poisoned(&self) -> bool
Whether the watcher is poisoned (overflow occurred).
Trait Implementations§
Source§impl Clone for DirtyFiles
impl Clone for DirtyFiles
Source§fn clone(&self) -> DirtyFiles
fn clone(&self) -> DirtyFiles
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 DirtyFiles
impl RefUnwindSafe for DirtyFiles
impl Send for DirtyFiles
impl Sync for DirtyFiles
impl Unpin for DirtyFiles
impl UnsafeUnpin for DirtyFiles
impl UnwindSafe for DirtyFiles
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<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more