[−][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) -> (u64, u32)
[src]
Return the last accessed time.
pub fn set_atime(&mut self, sec: u64, nsec: u32)
[src]
Set the last accessed time.
pub fn mtime(&self) -> (u64, u32)
[src]
Return the last modification time.
pub fn set_mtime(&mut self, sec: u64, nsec: u32)
[src]
Set the last modification time.
pub fn ctime(&self) -> (u64, u32)
[src]
Return the last created time.
pub fn set_ctime(&mut self, sec: u64, nsec: u32)
[src]
Set the last created time.
Trait Implementations
impl Clone for FileAttr
[src]
impl Copy for FileAttr
[src]
impl Default for FileAttr
[src]
impl Debug for FileAttr
[src]
impl TryFrom<stat> for FileAttr
[src]
Auto Trait Implementations
impl Send for FileAttr
impl Sync for FileAttr
impl Unpin for FileAttr
impl UnwindSafe for FileAttr
impl RefUnwindSafe for FileAttr
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
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 = !
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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
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> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,