pub struct FileMetadata {
pub device: u64,
pub inode: u64,
pub size: u64,
pub mtime_nanos: i64,
pub ctime_nanos: i64,
pub mode: u32,
pub uid: u32,
pub gid: u32,
}Expand description
The metadata of a regular file at one moment, as a tracer notes it when a command first reads or runs the file.
It holds what a change to the file changes: the device and inode that identify it, its size, its modification and change times, its mode, and its owner.
Fields§
§device: u64The device that holds the file.
inode: u64The file’s inode number on its device.
size: u64The size in bytes.
mtime_nanos: i64The modification time, in nanoseconds since the Unix epoch.
ctime_nanos: i64The change time, in nanoseconds since the Unix epoch.
mode: u32The mode: the file type and the permission bits.
uid: u32The user number of the owner.
gid: u32The group number of the owner.
Implementations§
Trait Implementations§
Source§impl Clone for FileMetadata
impl Clone for FileMetadata
impl Copy for FileMetadata
Source§impl Debug for FileMetadata
impl Debug for FileMetadata
impl Eq for FileMetadata
Source§impl Hash for FileMetadata
impl Hash for FileMetadata
Source§impl PartialEq for FileMetadata
impl PartialEq for FileMetadata
impl StructuralPartialEq for FileMetadata
Auto Trait Implementations§
impl Freeze for FileMetadata
impl RefUnwindSafe for FileMetadata
impl Send for FileMetadata
impl Sync for FileMetadata
impl Unpin for FileMetadata
impl UnsafeUnpin for FileMetadata
impl UnwindSafe for FileMetadata
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