pub enum PathState {
Absent,
File {
meta: FileMeta,
hash: Option<ContentHash>,
},
Directory {
mode: u32,
owner: Owner,
listing: Option<Listing>,
times: Times,
},
Symlink {
target: PathBuf,
pointee: Box<PathState>,
},
Special {
kind: SpecialKind,
},
Untracked,
Inaccessible {
errno: i32,
},
}Expand description
The state of a touched path when its step finished.
Variants§
Absent
Nothing exists at the path.
File
A regular file: its metadata, and the hash of its content when it was read or run as a program. A file that was only checked or written is never hashed.
Fields
§
hash: Option<ContentHash>The hash of the content, when the file was read or run.
Directory
A directory: its mode, owner, and times, and its listing, in the order the file system returned its entries, when it was listed.
Fields
Symlink
A symbolic link: its target, and the state of what it points to.
Fields
Special
A device, FIFO, or socket: its type only.
Fields
§
kind: SpecialKindThe type.
Untracked
A path under /proc or /sys that no track pattern matched: the access is
recorded, but its state is not, and it is never compared.
Inaccessible
The path exists but its state could not be read.
Trait Implementations§
impl Eq for PathState
impl StructuralPartialEq for PathState
Auto Trait Implementations§
impl Freeze for PathState
impl RefUnwindSafe for PathState
impl Send for PathState
impl Sync for PathState
impl Unpin for PathState
impl UnsafeUnpin for PathState
impl UnwindSafe for PathState
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
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
Compare self to
key and return true if they are equal.