[][src]Struct polyfuse::FileAttr

#[repr(transparent)]
pub struct 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.

Return the number of hard links.

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.

impl TryFrom<stat> for FileAttr[src]

type Error = TryFromIntError

The type returned in the event of a conversion error.

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.