Struct stat

#[repr(C)]
pub struct stat { pub st_dev: dev_t, pub st_ino: ino_t, pub st_nlink: nlink_t, pub st_mode: mode_t, pub st_uid: uid_t, pub st_gid: gid_t, pub st_rdev: dev_t, pub st_size: off_t, pub st_blksize: blksize_t, pub st_blocks: blkcnt_t, pub st_atime: time_t, pub st_atime_nsec: i64, pub st_mtime: time_t, pub st_mtime_nsec: i64, pub st_ctime: time_t, pub st_ctime_nsec: i64, /* private fields */ }

Fields

st_dev: dev_t
st_ino: ino_t
st_nlink: nlink_t
st_mode: mode_t
st_uid: uid_t
st_gid: gid_t
st_rdev: dev_t
st_size: off_t
st_blksize: blksize_t
st_blocks: blkcnt_t
st_atime: time_t
st_atime_nsec: i64
st_mtime: time_t
st_mtime_nsec: i64
st_ctime: time_t
st_ctime_nsec: i64

Trait Implementations

impl Clone for stat

fn clone(&self) -> Self

impl Copy for stat

impl Debug for stat

fn fmt(&self, f: &mut Formatter<'_>) -> Result

impl Eq for stat

impl Hash for stat

fn hash<__H: Hasher>(&self, state: &mut __H)

impl PartialEq for stat

fn eq(&self, other: &Self) -> bool

impl StructuralPartialEq for 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) -> T

Returns the argument unchanged.

impl<T, U> Into<U> for stat where U: From<T>,

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of [From]<T> for U chooses to do.

impl<T, U> TryFrom<U> for stat where U: Into<T>,

type Error = never;
fn try_from(value: U) -> Result<T, never>

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>