pub enum FolderChangeKind {
Created,
Removed,
Renamed {
from: OsString,
},
Modified,
Gone,
Overflow,
}Expand description
What happened in a watched folder; see FolderChange.
Variants§
Created
An entry appeared: created here, or moved in from a folder this watch does not see.
Removed
An entry disappeared: removed, or moved out to a folder this watch does not see.
Renamed
An entry was renamed inside the folder; FolderChange::name is its new name.
Modified
An entry’s content or attributes (permissions, times) changed.
Gone
The watched folder itself was removed, moved away or unmounted. It is reported once and no longer watched; watch it again under its new path if it still matters.
Overflow
The system dropped events because they came faster than they were read. Anything may have changed in this folder, so read it again.
Trait Implementations§
Source§impl Clone for FolderChangeKind
impl Clone for FolderChangeKind
Source§fn clone(&self) -> FolderChangeKind
fn clone(&self) -> FolderChangeKind
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 FolderChangeKind
impl Debug for FolderChangeKind
impl Eq for FolderChangeKind
Source§impl Hash for FolderChangeKind
impl Hash for FolderChangeKind
Source§impl PartialEq for FolderChangeKind
impl PartialEq for FolderChangeKind
impl StructuralPartialEq for FolderChangeKind
Auto Trait Implementations§
impl Freeze for FolderChangeKind
impl RefUnwindSafe for FolderChangeKind
impl Send for FolderChangeKind
impl Sync for FolderChangeKind
impl Unpin for FolderChangeKind
impl UnsafeUnpin for FolderChangeKind
impl UnwindSafe for FolderChangeKind
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.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