Struct fuser::ReplyDirectory
source · [−]pub struct ReplyDirectory { /* private fields */ }
Expand description
Directory reply
Implementations
sourceimpl ReplyDirectory
impl ReplyDirectory
sourcepub fn new<S: ReplySender>(unique: u64, sender: S, size: usize) -> ReplyDirectory
pub fn new<S: ReplySender>(unique: u64, sender: S, size: usize) -> ReplyDirectory
Creates a new ReplyDirectory with a specified buffer size.
sourcepub fn add<T: AsRef<OsStr>>(
&mut self,
ino: u64,
offset: i64,
kind: FileType,
name: T
) -> bool
pub fn add<T: AsRef<OsStr>>(
&mut self,
ino: u64,
offset: i64,
kind: FileType,
name: T
) -> 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 ReplyDirectory
impl Send for ReplyDirectory
impl Sync for ReplyDirectory
impl Unpin for ReplyDirectory
impl !UnwindSafe for ReplyDirectory
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more