Struct stat
Deprecated since 1.8.0: these type aliases are no longer supported by the standard library, the `libc` crate on crates.io should be used instead for the correct definitions
#[repr(C)]
pub struct stat { pub st_dev: u64, pub st_ino: u64, pub st_nlink: u64, pub st_mode: u32, pub st_uid: u32, pub st_gid: u32, pub __pad0: c_int, pub st_rdev: u64, pub st_size: i64, pub st_blksize: i64, pub st_blocks: i64, pub st_atime: i64, pub st_atime_nsec: c_long, pub st_mtime: i64, pub st_mtime_nsec: c_long, pub st_ctime: i64, pub st_ctime_nsec: c_long, pub __unused: [c_long; 3] }
Fields
st_dev: u64st_ino: u64st_nlink: u64st_mode: u32st_uid: u32st_gid: u32__pad0: c_intst_rdev: u64st_size: i64st_blksize: i64st_blocks: i64st_atime: i64st_atime_nsec: c_longst_mtime: i64st_mtime_nsec: c_longst_ctime: i64st_ctime_nsec: c_long__unused: [c_long; 3]
Trait Implementations
impl Clone for stat
fn clone(&self) -> stat
Auto Trait Implementations
impl Freeze for stat
impl RefUnwindSafe for stat
impl Send for stat
impl Sync for stat
impl Unpin for stat
impl UnsafeUnpin for stat
impl UnwindSafe for stat
Blanket Implementations
impl<T> Any for stat
where
T: 'static + ?Sized,
fn type_id(&self) -> TypeId
impl<T> Borrow<T> for stat
where
T: ?Sized,
fn borrow(&self) -> &T
impl<T> BorrowMut<T> for stat
where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
impl<T> CloneToUninit for stat
where
T: Clone,
unsafe fn clone_to_uninit(&self, dest: *mut u8)
impl<T> From<T> for stat
fn from(t: T) -> TReturns the argument unchanged.
impl<T> SizeHint for stat
where
T: ?Sized,
fn lower_bound(&self) -> usizefn upper_bound(&self) -> Option<usize>
impl<T> SizedTypeProperties for stat
impl<T> ToOwned for stat
where
T: Clone,
type Owned = T;fn to_owned(&self) -> Tfn clone_into(&self, target: &mut T)
impl<T, U> Into<U> for stat
where
U: From<T>,
fn into(self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses to do.
impl<T, U> TryFrom<U> for stat
where
U: Into<T>,
type Error = Infallible;fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
impl<T, U> TryInto<U> for stat
where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error;fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>