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

#[must_use]
pub struct ReplyEntry(_);

Reply with entry params.

Methods

impl ReplyEntry[src]

pub fn new(attr: FileAttr) -> Self[src]

Create a new ReplyEntry.

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 is unique for the lifetime of filesystem.

Trait Implementations

impl AsRef<ReplyEntry> for ReplyEntry[src]

impl Debug 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.