pub struct StatV2 {
pub error: u32,
pub dev: u64,
pub ino: u64,
pub mode: FileMode,
pub nlink: u32,
pub uid: u32,
pub gid: u32,
pub size: u64,
pub atime: i64,
pub mtime: i64,
pub ctime: i64,
}Expand description
File metadata from a STA2 (v2) response.
Fields§
§error: u32Error code from the device (0 on success, errno on failure).
dev: u64The device the file lives on (st_dev).
ino: u64The file’s inode number.
mode: FileModeUnix file mode (type + permissions).
nlink: u32Hard links to the file.
uid: u32The owner’s user id.
gid: u32The owner’s group id.
size: u64File size in bytes.
atime: i64Last access, in Unix seconds.
mtime: i64Last modification, in Unix seconds: signed and 64-bit, where
StatV1::mtime is unsigned and 32-bit.
ctime: i64Last status change, in Unix seconds.
Trait Implementations§
impl Copy for StatV2
impl Eq for StatV2
impl StructuralPartialEq for StatV2
Auto Trait Implementations§
impl Forget for StatV2
impl Freeze for StatV2
impl RefUnwindSafe for StatV2
impl Send for StatV2
impl Sync for StatV2
impl Unpin for StatV2
impl UnsafeUnpin for StatV2
impl UnwindSafe for StatV2
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