Struct axfs::api::port::Kstat

source ·
#[repr(C)]
pub struct Kstat {
Show 18 fields 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: u32, pub st_rdev: u64, pub st_size: u64, pub st_blksize: u32, pub _pad1: u32, pub st_blocks: u64, pub st_atime_sec: isize, pub st_atime_nsec: isize, pub st_mtime_sec: isize, pub st_mtime_nsec: isize, pub st_ctime_sec: isize, pub st_ctime_nsec: isize,
}
Available on x86-64 only.
Expand description

文件系统信息

Fields§

§st_dev: u64

设备

§st_ino: u64

inode 编号

§st_nlink: u64

硬链接数

§st_mode: u32

文件类型

§st_uid: u32

用户id

§st_gid: u32

用户组id

§_pad0: u32

padding

§st_rdev: u64

设备号

§st_size: u64

文件大小

§st_blksize: u32

块大小

§_pad1: u32

padding

§st_blocks: u64

块个数

§st_atime_sec: isize

最后一次访问时间(秒)

§st_atime_nsec: isize

最后一次访问时间(纳秒)

§st_mtime_sec: isize

最后一次修改时间(秒)

§st_mtime_nsec: isize

最后一次修改时间(纳秒)

§st_ctime_sec: isize

最后一次改变状态时间(秒)

§st_ctime_nsec: isize

最后一次改变状态时间(纳秒)

Trait Implementations§

source§

impl Clone for Kstat

source§

fn clone(&self) -> Kstat

Returns a copy 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 Kstat

source§

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

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

impl Default for Kstat

source§

fn default() -> Kstat

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

impl Copy for Kstat

Auto Trait Implementations§

§

impl RefUnwindSafe for Kstat

§

impl Send for Kstat

§

impl Sync for Kstat

§

impl Unpin for Kstat

§

impl UnwindSafe for Kstat

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> AsAny for T
where T: Any,

source§

fn as_any(&self) -> &(dyn Any + 'static)

把当前对象转化为 Any 类型,供后续 downcast 使用
source§

fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)

供 downcast_mut 使用
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> 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,

§

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

§

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

§

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.