pub struct StatePathStatus {
pub path: PathBuf,
pub exists: bool,
pub is_file: bool,
pub is_dir: bool,
pub size_bytes: u64,
pub readable: bool,
pub writable: bool,
}Expand description
File-system status for a single state path.
Fields§
§path: PathBufAbsolute or resolved path.
exists: boolWhether the path exists.
is_file: boolWhether the path is a regular file.
is_dir: boolWhether the path is a directory.
size_bytes: u64File size in bytes.
readable: boolWhether the path can be read by the current process.
writable: boolWhether the path can be written by the current process.
Trait Implementations§
Source§impl Clone for StatePathStatus
impl Clone for StatePathStatus
Source§fn clone(&self) -> StatePathStatus
fn clone(&self) -> StatePathStatus
Returns a duplicate of the value. Read more
1.0.0 · 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 StatePathStatus
impl Debug for StatePathStatus
Source§impl PartialEq for StatePathStatus
impl PartialEq for StatePathStatus
impl Eq for StatePathStatus
impl StructuralPartialEq for StatePathStatus
Auto Trait Implementations§
impl Freeze for StatePathStatus
impl RefUnwindSafe for StatePathStatus
impl Send for StatePathStatus
impl Sync for StatePathStatus
impl Unpin for StatePathStatus
impl UnsafeUnpin for StatePathStatus
impl UnwindSafe for StatePathStatus
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.