Struct cntr_fuse::ReplyDirectoryPlus
source · pub struct ReplyDirectoryPlus { /* private fields */ }
Expand description
DirectoryPlus reply
Implementations§
source§impl ReplyDirectoryPlus
impl ReplyDirectoryPlus
sourcepub fn new<S: ReplySender>(
unique: u64,
sender: S,
size: usize
) -> ReplyDirectoryPlus
pub fn new<S: ReplySender>( unique: u64, sender: S, size: usize ) -> ReplyDirectoryPlus
Creates a new ReplyDirectory with a specified buffer size.
sourcepub fn add<T: AsRef<OsStr>>(
&mut self,
ino: u64,
offset: i64,
name: T,
ttl: &Duration,
attr: &FileAttr,
generation: u64
) -> bool
pub fn add<T: AsRef<OsStr>>( &mut self, ino: u64, offset: i64, name: T, ttl: &Duration, attr: &FileAttr, generation: u64 ) -> bool
Add an entry to the directory reply buffer. Returns true if the buffer is full. A transparent offset value can be provided for each entry. The kernel uses these value to request the next entries in further readdir calls
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for ReplyDirectoryPlus
impl Send for ReplyDirectoryPlus
impl !Sync for ReplyDirectoryPlus
impl Unpin for ReplyDirectoryPlus
impl !UnwindSafe for ReplyDirectoryPlus
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more