#[non_exhaustive]pub enum DirChangeKind {
Added,
Removed,
Renamed {
from: String,
},
Modified,
AttributesChanged,
Lost,
Moved,
Deleted,
}Expand description
What a backend saw happen to an entry of a watched directory.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Added
The entry appeared.
Removed
The entry went away.
Renamed
The entry was renamed within the directory from from.
Modified
The entry’s contents were written.
AttributesChanged
The entry’s attributes or times changed.
Lost
Changes were lost; the client has to list the directory again.
Moved
The watched directory itself was renamed or moved. Changes to its entries keep coming.
Deleted
The watched directory itself was deleted. No change follows.
Trait Implementations§
Source§impl Clone for DirChangeKind
impl Clone for DirChangeKind
Source§impl Debug for DirChangeKind
impl Debug for DirChangeKind
impl Eq for DirChangeKind
Source§impl PartialEq for DirChangeKind
impl PartialEq for DirChangeKind
impl StructuralPartialEq for DirChangeKind
Auto Trait Implementations§
impl Forget for DirChangeKind
impl Freeze for DirChangeKind
impl Move for DirChangeKind
impl RefUnwindSafe for DirChangeKind
impl Send for DirChangeKind
impl Sync for DirChangeKind
impl Unpin for DirChangeKind
impl UnsafeUnpin for DirChangeKind
impl UnwindSafe for DirChangeKind
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