[−][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)
[src]
Set the attribute value of this entry.
pub fn attr_valid(&mut self, sec: u64, nsec: u32)
[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 entry_valid(&mut self, sec: u64, nsec: u32)
[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)
[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 Send for ReplyEntry
impl Sync for ReplyEntry
impl Unpin for ReplyEntry
impl UnwindSafe for ReplyEntry
impl RefUnwindSafe for ReplyEntry
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = !
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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
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> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,