pub enum Change {
Show 13 variants
Appeared,
Disappeared,
Type,
Permissions {
old: u32,
new: u32,
},
Owner {
old: Owner,
new: Owner,
},
Timestamps {
old: Times,
new: Times,
},
Size {
old: u64,
new: u64,
},
Content,
Metadata,
Entries {
appeared: Vec<DirEntry>,
disappeared: Vec<DirEntry>,
retyped: Vec<DirEntry>,
},
Order,
Attributes {
appeared: Vec<Attribute>,
disappeared: Vec<Attribute>,
changed: Vec<Attribute>,
},
LinkTarget {
old: PathBuf,
new: PathBuf,
},
}Expand description
What changed about one recorded path, as a cache check found it.
Variants§
Appeared
Something exists where nothing did.
Disappeared
Nothing exists where something did.
Type
The type changed, such as a file that became a directory, or the path can or can no longer be read.
Permissions
A regular file’s or a directory’s permission bits changed, found without hashing.
Owner
A regular file’s or a directory’s owner changed, found without hashing.
Timestamps
A regular file’s or a directory’s modification or change time changed, found
without hashing, for a step run with timestamps.
Size
A regular file’s size changed, found without hashing.
Content
A regular file that was read has the same size and different content, found by hashing.
Metadata
A regular file that was not read, and so has no hash, has the same size and different metadata.
Entries
The entries of a listed directory changed. The entries that appeared, disappeared, or changed type are named when both listings kept their entries; otherwise all three lists are empty.
Fields
Order
A listed directory has the same entries in a different order.
Attributes
The extended attributes of a path whose attributes were recorded changed, for the path itself or, for a symbolic link, for what it points to: the attributes that appeared, disappeared, or changed value, each sorted by name. All three lists are empty when only whether the attributes could be read changed.
Fields
LinkTarget
A symbolic link points somewhere else.
Trait Implementations§
impl Eq for Change
impl StructuralPartialEq for Change
Auto Trait Implementations§
impl Freeze for Change
impl RefUnwindSafe for Change
impl Send for Change
impl Sync for Change
impl Unpin for Change
impl UnsafeUnpin for Change
impl UnwindSafe for Change
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.