#[repr(C)]pub struct FileStat {}Expand description
File status information (returned by SYS_FSTAT, SYS_STAT, SYS_FSTATAT).
Equivalent to POSIX struct stat with 64-bit fields.
Fields§
§st_dev: u64Device ID containing this file.
st_ino: u64Inode number.
st_mode: u32File type and permissions (see DT_* and 0o7777 masks).
st_nlink: u32Number of hard links.
st_uid: u32Owner user ID.
st_gid: u32Owner group ID.
st_rdev: u64Device ID (for special files).
st_size: u64Total size in bytes.
st_blksize: u64Preferred block size for I/O.
st_blocks: u64Number of 512-byte blocks allocated.
st_atime: TimeSpecLast access time.
st_mtime: TimeSpecLast modification time.
st_ctime: TimeSpecLast status change time.
Implementations§
Trait Implementations§
impl Copy for FileStat
Source§impl FromBytes for FileStat
impl FromBytes for FileStat
Source§impl IntoBytes for FileStat
impl IntoBytes for FileStat
§fn as_mut_bytes(&mut self) -> &mut [u8]where
Self: FromBytes,
fn as_mut_bytes(&mut self) -> &mut [u8]where
Self: FromBytes,
Gets the bytes of this value mutably. Read more
Source§impl TryFromBytes for FileStat
impl TryFromBytes for FileStat
§fn try_read_from_bytes(
source: &[u8],
) -> Result<Self, ConvertError<Infallible, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>where
Self: Sized,
fn try_read_from_bytes(
source: &[u8],
) -> Result<Self, ConvertError<Infallible, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>where
Self: Sized,
§fn try_read_from_prefix(
source: &[u8],
) -> Result<(Self, &[u8]), ConvertError<Infallible, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>where
Self: Sized,
fn try_read_from_prefix(
source: &[u8],
) -> Result<(Self, &[u8]), ConvertError<Infallible, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>where
Self: Sized,
§fn try_read_from_suffix(
source: &[u8],
) -> Result<(&[u8], Self), ConvertError<Infallible, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>where
Self: Sized,
fn try_read_from_suffix(
source: &[u8],
) -> Result<(&[u8], Self), ConvertError<Infallible, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>where
Self: Sized,
Auto Trait Implementations§
impl Freeze for FileStat
impl RefUnwindSafe for FileStat
impl Send for FileStat
impl Sync for FileStat
impl Unpin for FileStat
impl UnsafeUnpin for FileStat
impl UnwindSafe for FileStat
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