pub struct Stat {}Expand description
Minimal stat structure.
More information on the POSIX definition.
Fields§
§dev: DevDevice ID of device containing file.
ino: InoFile serial number.
mode: ModeMode of file.
nlink: NlinkNumber of hard links to the file.
uid: UidUser ID of file.
gid: GidGroup ID of file.
rdev: DevDevice ID (if file is character or block special).
size: OffFor regular files, the file size in bytes.
For symbolic links, the length in bytes of the pathname contained in the symbolic link.
atim: TimespecLast data access time stamp.
mtim: TimespecLast data modification time stamp.
ctim: TimespecLast file status change time stamp.
blksize: BlksizeA file system-specific preferred I/O block size for this object. In some file system types, this may vary from file to file.
blkcnt: BlkcntNumber of blocks allocated for this object.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Stat
impl RefUnwindSafe for Stat
impl Send for Stat
impl Sync for Stat
impl Unpin for Stat
impl UnwindSafe for Stat
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<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more