[−][src]Struct polyfuse::FileAttr
Attributes about a file.
This type is ABI-compatible with fuse_attr
.
Methods
impl FileAttr
[src]
pub fn ino(&self) -> u64
[src]
Return the inode number.
pub fn set_ino(&mut self, ino: u64)
[src]
Set the inode number.
pub fn size(&self) -> u64
[src]
Return the size of content.
pub fn set_size(&mut self, size: u64)
[src]
Set the size of content.
pub fn mode(&self) -> u32
[src]
Return the permission of the inode.
pub fn set_mode(&mut self, mode: u32)
[src]
Set the permission of the inode.
pub fn nlink(&self) -> u32
[src]
Return the number of hard links.
pub fn set_nlink(&mut self, nlink: u32)
[src]
Set the number of hard links.
pub fn uid(&self) -> u32
[src]
Return the user ID.
pub fn set_uid(&mut self, uid: u32)
[src]
Set the user ID.
pub fn gid(&self) -> u32
[src]
Return the group ID.
pub fn set_gid(&mut self, gid: u32)
[src]
Set the group ID.
pub fn rdev(&self) -> u32
[src]
Return the device ID.
pub fn set_rdev(&mut self, rdev: u32)
[src]
Set the device ID.
pub fn blksize(&self) -> u32
[src]
Return the block size.
pub fn set_blksize(&mut self, blksize: u32)
[src]
Set the block size.
pub fn blocks(&self) -> u64
[src]
Return the number of allocated blocks.
pub fn set_blocks(&mut self, blocks: u64)
[src]
Set the number of allocated blocks.
pub fn atime(&self) -> SystemTime
[src]
Return the last accessed time.
pub fn atime_raw(&self) -> (u64, u32)
[src]
Return the last accessed time in raw form.
pub fn set_atime(&mut self, time: SystemTime)
[src]
Set the last accessed time.
pub fn set_atime_raw(&mut self, (sec, nsec): (u64, u32))
[src]
Set the last accessed time by raw form.
pub fn mtime(&self) -> SystemTime
[src]
Return the last modification time.
pub fn mtime_raw(&self) -> (u64, u32)
[src]
Return the last modification time in raw form.
pub fn set_mtime(&mut self, time: SystemTime)
[src]
Set the last modification time.
pub fn set_mtime_raw(&mut self, (sec, nsec): (u64, u32))
[src]
Set the last modification time by raw form.
pub fn ctime(&self) -> SystemTime
[src]
Return the last created time.
pub fn ctime_raw(&self) -> (u64, u32)
[src]
Return the last created time in raw form.
pub fn set_ctime(&mut self, time: SystemTime)
[src]
Set the last created time.
pub fn set_ctime_raw(&mut self, (sec, nsec): (u64, u32))
[src]
Set the last created time by raw form.
Trait Implementations
impl Clone for FileAttr
[src]
impl Copy for FileAttr
[src]
impl Debug for FileAttr
[src]
impl Default for FileAttr
[src]
impl TryFrom<Metadata> for FileAttr
[src]
type Error = TryFromIntError
The type returned in the event of a conversion error.
fn try_from(attr: Metadata) -> Result<Self, Self::Error>
[src]
impl TryFrom<stat> for FileAttr
[src]
Auto Trait Implementations
impl RefUnwindSafe for FileAttr
impl Send for FileAttr
impl Sync for FileAttr
impl Unpin for FileAttr
impl UnwindSafe for FileAttr
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,