[−][src]Struct polyfuse::reply::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]
fn collect_bytes<'a, T: ?Sized>(&'a self, collector: &mut T) where
T: Collector<'a>,
[src]
T: Collector<'a>,
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>,