#[repr(C)]pub struct LinuxStat {Show 20 fields
pub st_dev: u64,
pub st_ino: u64,
pub st_mode: u32,
pub st_nlink: u32,
pub st_uid: u32,
pub st_gid: u32,
pub st_rdev: u64,
pub __pad1: u64,
pub st_size: i64,
pub st_blksize: i32,
pub __pad2: i32,
pub st_blocks: i64,
pub st_atime: i64,
pub st_atime_nsec: u64,
pub st_mtime: i64,
pub st_mtime_nsec: u64,
pub st_ctime: i64,
pub st_ctime_nsec: u64,
pub __unused4: u32,
pub __unused5: u32,
}Expand description
Linux stat structure for RISC-V 64-bit Matches asm-generic struct stat layout used by musl on 64-bit.
Fields§
§st_dev: u64§st_ino: u64§st_mode: u32§st_nlink: u32§st_uid: u32§st_gid: u32§st_rdev: u64§__pad1: u64§st_size: i64§st_blksize: i32§__pad2: i32§st_blocks: i64§st_atime: i64§st_atime_nsec: u64§st_mtime: i64§st_mtime_nsec: u64§st_ctime: i64§st_ctime_nsec: u64§__unused4: u32§__unused5: u32Implementations§
Source§impl LinuxStat
impl LinuxStat
Sourcepub fn from_metadata(metadata: &FileMetadata) -> Self
pub fn from_metadata(metadata: &FileMetadata) -> Self
Create a new LinuxStat from Scarlet FileMetadata
Trait Implementations§
Auto Trait Implementations§
impl Freeze for LinuxStat
impl RefUnwindSafe for LinuxStat
impl Send for LinuxStat
impl Sync for LinuxStat
impl Unpin for LinuxStat
impl UnwindSafe for LinuxStat
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)