[][src]Struct polyfuse::reply::ReplyEntry

#[must_use]
pub struct ReplyEntry(_);

Reply with entry params.

Methods

impl ReplyEntry[src]

pub fn ino(&mut self, ino: u64) -> &mut Self[src]

Set the inode number of this entry.

If this value is zero, it means that the entry is negative. Returning a negative entry is also possible with the ENOENT error, but the zeroed entries also have the ability to specify the lifetime of the entry cache by using the ttl_entry parameter.

The default value is 0.

pub fn attr(&mut self, attr: FileAttr) -> &mut Self[src]

Set the attribute value of this entry.

pub fn ttl_attr(&mut self, duration: Duration) -> &mut Self[src]

Set the validity timeout for inode attributes.

The operations should set this value to very large when the changes of inode attributes are caused only by FUSE requests.

pub fn ttl_entry(&mut self, duration: Duration) -> &mut Self[src]

Set the validity timeout for the name.

The operations should set this value to very large when the changes/deletions of directory entries are caused only by FUSE requests.

pub fn generation(&mut self, generation: u64) -> &mut Self[src]

Sets the generation of this entry.

The parameter generation is used to distinguish the inode from the past one when the filesystem reuse inode numbers. That is, the operations must ensure that the pair of entry's inode number and generation are unique for the lifetime of the filesystem.

Trait Implementations

impl AsRef<ReplyEntry> for ReplyEntry[src]

impl Debug for ReplyEntry[src]

impl Default for ReplyEntry[src]

impl Reply for ReplyEntry[src]

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, 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.