pub struct ReplyDirectory<'a> { /* private fields */ }Expand description
FUSE directory response
Implementations§
Source§impl ReplyDirectory<'_>
impl ReplyDirectory<'_>
Sourcepub async fn error(self, err: AsyncFusexError) -> Result<usize>
pub async fn error(self, err: AsyncFusexError) -> Result<usize>
fuse reply error
Sourcepub async fn error_code(self, error_code: Errno) -> Result<usize>
pub async fn error_code(self, error_code: Errno) -> Result<usize>
fuse reply error code
Source§impl<'a> ReplyDirectory<'a>
impl<'a> ReplyDirectory<'a>
Sourcepub fn new(unique: u64, file: &'a mut File, size: usize) -> Self
pub fn new(unique: u64, file: &'a mut File, size: usize) -> Self
Creates a new ReplyDirectory with a specified buffer size.
Sourcepub fn add<T: AsRef<OsStr>>(
&mut self,
ino: u64,
offset: i64,
kind: SFlag,
name: T,
) -> bool
pub fn add<T: AsRef<OsStr>>( &mut self, ino: u64, offset: i64, kind: SFlag, 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<'a> Freeze for ReplyDirectory<'a>
impl<'a> RefUnwindSafe for ReplyDirectory<'a>
impl<'a> Send for ReplyDirectory<'a>
impl<'a> Sync for ReplyDirectory<'a>
impl<'a> Unpin for ReplyDirectory<'a>
impl<'a> !UnwindSafe for ReplyDirectory<'a>
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