fn readdir<F>(
        &self,
        ctx: Context,
        inode: Self::Inode,
        handle: Self::Handle,
        size: u32,
        offset: u64,
        add_entry: F,
    ) -> io::Result<()>
    where
        F: FnMut(DirEntry) -> io::Result<usize>,
    {
        Err(io::Error::from_raw_os_error(bindings::LINUX_ENOSYS))
    }
/// Read a directory.
///
/// `handle` is the `Handle` returned by the file system from the `opendir` method, if any. If
/// the file system did not return a `Handle` from `opendir` then the contents of `handle` are
/// undefined.
///
/// `size` indicates the maximum number of bytes that should be returned by this method.
///
/// If `offset` is non-zero then it corresponds to one of the `offset` values from a `DirEntry`
/// that was previously returned by a call to `readdir` for the same handle. In this case the
/// file system should skip over the entries before the position defined by the `offset` value.
/// If entries were added or removed while the `Handle` is open then the file system may still
/// include removed entries or skip newly created entries. However, adding or removing entries
/// should never cause the file system to skip over unrelated entries or include an entry more
/// than once. This means that `offset` cannot be a simple index and must include sufficient
/// information to uniquely determine the next entry in the list even when the set of entries is
/// being changed.
///
/// The file system may return entries for the current directory (".") and parent directory
/// ("..") but is not required to do so. If the file system does not return these entries, then
/// they are implicitly added by the kernel.
///
/// The lookup count for `Inode`s associated with the returned directory entries is **NOT**
/// affected by this method.
///
// TODO(chirantan): Change method signature to return `Iterator<DirEntry>` rather than using an
// `FnMut` for adding entries.
Read a directory.

`size` indicates the maximum number of bytes that should be returned by this method.



The file system may return entries for the current directory (".") and parent directory
("..") but is not required to do so. If the file system does not return these entries, then
they are implicitly added by the kernel.

The lookup count for `Inode`s associated with the returned directory entries is **NOT
affected by this method.

Change method signature to return `Iterator` rather than using an
`FnMut` for adding entries.
Read a directory . ` size ` indicates the maximum number of bytes that should be returned by this method . The file system may return entries for the current directory ( " . " ) and parent directory ( " .. " ) but is not required to do so . If the file system does not return these entries then they are implicitly added by the kernel . The lookup count for ` Inode ` s associated with the returned directory entries is ** NOT affected by this method . Change method signature to return ` Iterator ` rather than using an ` FnMut ` for adding entries .
fn readdir<F>(
        &self,
        ctx: Context,
        inode: Self::Inode,
        handle: Self::Handle,
        size: u32,
        offset: u64,
        add_entry: F,
    ) -> io::Result<()>
    where
        F: FnMut(DirEntry) -> io::Result<usize>,
    {
        Err(io::Error::from_raw_os_error(bindings::LINUX_ENOSYS))
    }
fn readdir < F > ( & self , ctx : Context , inode : Self :: Inode , handle : Self :: Handle , size : u32 , offset : u64 , add_entry : F , ) -> io :: Result < ( ) > where F : FnMut ( DirEntry ) -> io :: Result < usize > , { Err ( io :: Error :: from_raw_os_error ( bindings :: LINUX_ENOSYS ) ) }
Read a directory.
Read a directory .
&self
ctx
Context
inode
Self::Inode
handle
Self::Handle
size
u32
offset
u64
add_entry
F