pub struct Stat {
pub mtime: Time,
pub ctime: Time,
pub dev: u32,
pub ino: u32,
pub uid: u32,
pub gid: u32,
pub size: u32,
}
Expand description
An entry’s filesystem stat information.
Fields§
§mtime: Time
Modification time
ctime: Time
Creation time
dev: u32
Device number
ino: u32
Inode number
uid: u32
User id of the owner
gid: u32
Group id of the owning group
size: u32
The size of bytes on disk. Capped to u32 so files bigger than that will need thorough additional checking
Trait Implementations§
source§impl<'de> Deserialize<'de> for Stat
impl<'de> Deserialize<'de> for Stat
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Ord for Stat
impl Ord for Stat
source§impl PartialEq<Stat> for Stat
impl PartialEq<Stat> for Stat
source§impl PartialOrd<Stat> for Stat
impl PartialOrd<Stat> for Stat
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for Stat
impl Eq for Stat
impl StructuralEq for Stat
impl StructuralPartialEq for Stat
Auto Trait Implementations§
impl RefUnwindSafe for Stat
impl Send for Stat
impl Sync for Stat
impl Unpin for Stat
impl UnwindSafe for Stat
Blanket Implementations§
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more