stat_t

Struct stat_t 

Source
pub struct stat_t {
Show 16 fields pub st_dev: usize, pub st_ino: usize, pub st_nlink: usize, pub st_mode: u32, pub st_uid: u32, pub st_gid: u32, pub st_rdev: usize, pub st_size: isize, pub st_blksize: isize, pub st_blocks: isize, pub st_atime: usize, pub st_atime_nsec: usize, pub st_mtime: usize, pub st_mtime_nsec: usize, pub st_ctime: usize, pub st_ctime_nsec: usize, /* private fields */
}

Fields§

§st_dev: usize§st_ino: usize§st_nlink: usize§st_mode: u32§st_uid: u32§st_gid: u32§st_rdev: usize§st_size: isize§st_blksize: isize§st_blocks: isize

Number 512-byte blocks allocated.

§st_atime: usize§st_atime_nsec: usize§st_mtime: usize§st_mtime_nsec: usize§st_ctime: usize§st_ctime_nsec: usize

Trait Implementations§

Source§

impl Clone for stat_t

Source§

fn clone(&self) -> stat_t

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for stat_t

Source§

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

Formats the value using the given formatter. Read more
Source§

impl Default for stat_t

Source§

fn default() -> stat_t

Returns the “default value” for a type. Read more

Auto Trait Implementations§

§

impl Freeze for stat_t

§

impl RefUnwindSafe for stat_t

§

impl Send for stat_t

§

impl Sync for stat_t

§

impl Unpin for stat_t

§

impl UnwindSafe for stat_t

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

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

Source§

fn into(self) -> U

Calls U::from(self).

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

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

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

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.