pub struct LinuxFileAttributes { /* private fields */ }Expand description
Complete portable attributes for one restored inode.
Implementations§
Source§impl LinuxFileAttributes
impl LinuxFileAttributes
Sourcepub const fn inode(&self) -> LinuxInode
pub const fn inode(&self) -> LinuxInode
Returns the restored inode.
Sourcepub const fn blocks(&self) -> u64
pub const fn blocks(&self) -> u64
Returns allocated 512-byte block count reported to the kernel.
Sourcepub const fn kind(&self) -> LinuxNodeKind
pub const fn kind(&self) -> LinuxNodeKind
Returns the portable node kind.
Sourcepub const fn permissions(&self) -> u16
pub const fn permissions(&self) -> u16
Returns Unix permission bits.
Sourcepub const fn block_size(&self) -> u32
pub const fn block_size(&self) -> u32
Returns the preferred I/O block size.
Sourcepub const fn time(&self) -> SystemTime
pub const fn time(&self) -> SystemTime
Returns the fallback timestamp used for all native time fields.
Trait Implementations§
Source§impl Clone for LinuxFileAttributes
impl Clone for LinuxFileAttributes
Source§fn clone(&self) -> LinuxFileAttributes
fn clone(&self) -> LinuxFileAttributes
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 LinuxFileAttributes
impl Debug for LinuxFileAttributes
Source§impl PartialEq for LinuxFileAttributes
impl PartialEq for LinuxFileAttributes
impl Eq for LinuxFileAttributes
impl StructuralPartialEq for LinuxFileAttributes
Auto Trait Implementations§
impl Freeze for LinuxFileAttributes
impl RefUnwindSafe for LinuxFileAttributes
impl Send for LinuxFileAttributes
impl Sync for LinuxFileAttributes
impl Unpin for LinuxFileAttributes
impl UnwindSafe for LinuxFileAttributes
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