pub struct Stat {
pub mtime: Time,
pub ctime: Time,
pub dev: u32,
pub ino: u32,
pub uid: u32,
pub gid: u32,
pub size: u32,
}
Fields
mtime: Time
ctime: Time
dev: u32
ino: u32
uid: u32
gid: u32
size: u32
The size of bytes on disk. Capped to u32 so files bigger than that will need thorough checking (and hopefully never make it)
Trait Implementations
sourceimpl Ord for Stat
impl Ord for Stat
sourceimpl PartialOrd<Stat> for Stat
impl PartialOrd<Stat> for Stat
sourcefn partial_cmp(&self, other: &Stat) -> Option<Ordering>
fn partial_cmp(&self, other: &Stat) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn 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 more
impl 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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more