#[non_exhaustive]pub struct DirChange {
pub name: String,
pub kind: DirChangeKind,
pub is_directory: bool,
}Expand description
A change to an entry of a watched directory, as the backend saw it.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.name: StringName of the entry in the directory. Empty for
DirChangeKind::Lost, DirChangeKind::Moved and
DirChangeKind::Deleted.
kind: DirChangeKindWhat happened to the entry.
is_directory: boolThe entry is a directory.
Implementations§
Trait Implementations§
impl Eq for DirChange
impl StructuralPartialEq for DirChange
Auto Trait Implementations§
impl Forget for DirChange
impl Freeze for DirChange
impl Move for DirChange
impl RefUnwindSafe for DirChange
impl Send for DirChange
impl Sync for DirChange
impl Unpin for DirChange
impl UnsafeUnpin for DirChange
impl UnwindSafe for DirChange
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