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: u64
st_ino: u64
st_nlink: u64
st_mode: u32
st_uid: u32
st_gid: u32
__pad0: c_int
st_rdev: u64
st_size: i64
st_blksize: i64
st_blocks: i64
st_atime: i64
st_atime_nsec: c_long
st_mtime: i64
st_mtime_nsec: c_long
st_ctime: i64
st_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) -> T

Returns the argument unchanged.

impl<T> SizeHint for stat where T: ?Sized,

fn lower_bound(&self) -> usize
fn 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) -> T
fn clone_into(&self, target: &mut T)

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 = 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>