pub struct FolderChange {
pub folder: PathBuf,
pub name: Option<OsString>,
pub kind: FolderChangeKind,
}Expand description
One change in a watched folder, as FolderChanges::next reports it.
A change carries the name of the entry it concerns, so an application that shows a single
file can tell whether that file changed without rereading anything. Most applications need
less: they read folder again, once per batch, whatever the names are.
Fields§
§folder: PathBufThe watched folder, as it was given to FolderWatch::watch.
name: Option<OsString>The entry inside it that changed; None when the change concerns the folder as a whole
(FolderChangeKind::Gone and FolderChangeKind::Overflow).
kind: FolderChangeKindWhat happened.
Trait Implementations§
Source§impl Clone for FolderChange
impl Clone for FolderChange
Source§fn clone(&self) -> FolderChange
fn clone(&self) -> FolderChange
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 FolderChange
impl Debug for FolderChange
impl Eq for FolderChange
Source§impl Hash for FolderChange
impl Hash for FolderChange
Source§impl PartialEq for FolderChange
impl PartialEq for FolderChange
impl StructuralPartialEq for FolderChange
Auto Trait Implementations§
impl Freeze for FolderChange
impl RefUnwindSafe for FolderChange
impl Send for FolderChange
impl Sync for FolderChange
impl Unpin for FolderChange
impl UnsafeUnpin for FolderChange
impl UnwindSafe for FolderChange
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