Skip to main content

VfAttrs

Struct VfAttrs 

Source
pub struct VfAttrs {
Show 21 fields pub file: FileOperand, pub masks: AttrMask, pub returned: AttrMask, pub ftype: VfType, pub mode: u32, pub size: u64, pub nlink: u32, pub fileid: u64, pub fs_id: u128, pub change: u64, pub uid: u32, pub gid: u32, pub rdev: u64, pub blocks: u64, pub mtime_sec: i64, pub mtime_nsec: u32, pub atime_sec: i64, pub atime_nsec: u32, pub ctime_sec: i64, pub ctime_nsec: u32, pub has_named_attr: bool,
}
Expand description

File attributes, mirroring struct tc_attrs. mode is the full st_mode (permission bits plus S_IFMT file-type bits); the mtime/atime/ctime fields hold seconds and nanoseconds.

Fields§

§file: FileOperand§masks: AttrMask

Requested attributes for a get/set call; also which attributes the caller cares about.

§returned: AttrMask

Which requested attributes were actually returned (populated by getattrsv / lgetattrsv). A field is only meaningful when its bit is set here; masks alone cannot distinguish “not requested” from “requested but not returned” from “returned as zero”.

§ftype: VfType§mode: u32§size: u64§nlink: u32§fileid: u64§fs_id: u128

Opaque identity for the containing filesystem. Compare together with fileid, and only within the backend’s identity namespace. This is not a mount ID or the special-file device number stored in rdev.

§change: u64

Backend file-version token. NFS supplies FATTR4_CHANGE; other backends leave this absent by not setting AttrMask::CHANGE in returned.

§uid: u32§gid: u32§rdev: u64§blocks: u64§mtime_sec: i64§mtime_nsec: u32§atime_sec: i64§atime_nsec: u32§ctime_sec: i64§ctime_nsec: u32§has_named_attr: bool

FATTR4_NAMED_ATTR: TRUE iff the object has a non-empty named attribute directory (i.e. at least one user.* xattr).

Trait Implementations§

Source§

impl Clone for VfAttrs

Source§

fn clone(&self) -> VfAttrs

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

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

Performs copy-assignment from source. Read more
Source§

impl Debug for VfAttrs

Source§

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

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

impl Default for VfAttrs

Source§

fn default() -> VfAttrs

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

Auto Trait Implementations§

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

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

fn try_from(value: U) -> Result<T, !>

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.