#[non_exhaustive]pub enum PathStatus {
Missing {
path: PathBuf,
},
Exists {
path: PathBuf,
},
Invalid {
path: PathBuf,
reason: String,
},
}Expand description
Per-file check used to populate StatusReport::files.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Missing
File or directory does not exist.
Exists
File or directory exists.
Invalid
File exists but is not in a valid shape (parse failure, wrong type, missing required member, etc.).
Trait Implementations§
Source§impl Clone for PathStatus
impl Clone for PathStatus
Source§fn clone(&self) -> PathStatus
fn clone(&self) -> PathStatus
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 PathStatus
impl Debug for PathStatus
Source§impl PartialEq for PathStatus
impl PartialEq for PathStatus
Source§fn eq(&self, other: &PathStatus) -> bool
fn eq(&self, other: &PathStatus) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for PathStatus
impl StructuralPartialEq for PathStatus
Auto Trait Implementations§
impl Freeze for PathStatus
impl RefUnwindSafe for PathStatus
impl Send for PathStatus
impl Sync for PathStatus
impl Unpin for PathStatus
impl UnsafeUnpin for PathStatus
impl UnwindSafe for PathStatus
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§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.