pub struct FsNodeInfo {Show 14 fields
pub mode: FileMode,
pub link_count: usize,
pub uid: uid_t,
pub gid: gid_t,
pub rdev: DeviceType,
pub size: usize,
pub blksize: usize,
pub blocks: usize,
pub time_status_change: UtcInstant,
pub time_access: UtcInstant,
pub time_modify: UtcInstant,
pub casefold: bool,
pub wrapping_key_id: Option<[u8; 16]>,
pub pending_time_access_update: bool,
}Fields§
§mode: FileMode§link_count: usize§uid: uid_t§gid: gid_t§rdev: DeviceType§size: usize§blksize: usize§blocks: usize§time_status_change: UtcInstant§time_access: UtcInstant§time_modify: UtcInstant§casefold: bool§wrapping_key_id: Option<[u8; 16]>§pending_time_access_update: boolImplementations§
Source§impl FsNodeInfo
impl FsNodeInfo
pub fn new(mode: FileMode, owner: FsCred) -> Self
pub fn storage_size(&self) -> usize
pub fn chmod(&mut self, mode: FileMode)
pub fn chown(&mut self, owner: Option<uid_t>, group: Option<gid_t>)
pub fn cred(&self) -> FsCred
pub fn suid_and_sgid( &self, current_task: &CurrentTask, fs_node: &FsNode, ) -> Result<UserAndOrGroupId, Errno>
Trait Implementations§
Source§impl Clone for FsNodeInfo
impl Clone for FsNodeInfo
Source§fn clone(&self) -> FsNodeInfo
fn clone(&self) -> FsNodeInfo
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for FsNodeInfo
impl Debug for FsNodeInfo
Source§impl Default for FsNodeInfo
impl Default for FsNodeInfo
Source§fn default() -> FsNodeInfo
fn default() -> FsNodeInfo
Returns the “default value” for a type. Read more
Source§impl PartialEq for FsNodeInfo
impl PartialEq for FsNodeInfo
impl StructuralPartialEq for FsNodeInfo
Auto Trait Implementations§
impl Freeze for FsNodeInfo
impl RefUnwindSafe for FsNodeInfo
impl Send for FsNodeInfo
impl Sync for FsNodeInfo
impl Unpin for FsNodeInfo
impl UnwindSafe for FsNodeInfo
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
Source§impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
§impl<T> InstanceFromServiceTransport<T> for T
impl<T> InstanceFromServiceTransport<T> for T
§fn from_service_transport(handle: T) -> T
fn from_service_transport(handle: T) -> T
Converts the given service transport handle of type
T to [Self]Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T, U> MultiArchFrom<T> for Uwhere
U: From<T>,
impl<T, U> MultiArchFrom<T> for Uwhere
U: From<T>,
§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T, U> TryIntoExt<U> for Twhere
U: TryFromExt<T>,
impl<T, U> TryIntoExt<U> for Twhere
U: TryFromExt<T>,
type Error = <U as TryFromExt<T>>::Error
§fn try_into_ext(self) -> Result<U, <T as TryIntoExt<U>>::Error>
fn try_into_ext(self) -> Result<U, <T as TryIntoExt<U>>::Error>
Tries to perform the conversion.