[−][src]Struct polyfuse::reply::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
impl RefUnwindSafe for ReplyEntry
impl Send for ReplyEntry
impl Sync for ReplyEntry
impl Unpin for ReplyEntry
impl UnwindSafe for ReplyEntry
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, 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>,