pub trait DirectoryFileSystem: FileSystem {
// Required methods
fn create_dir_one(&mut self, path: &Path, mode: u32) -> VfResult<()>;
fn read_dir_one(
&mut self,
path: &Path,
options: ReadDirOptions,
) -> VfResult<Vec<DirEntry>>;
fn read_dir_page(
&mut self,
path: &Path,
cursor: Option<DirPageCursor>,
page_size: usize,
max_entries: usize,
) -> VfResult<(Vec<DirEntry>, Option<DirPageCursor>)>;
}Expand description
Directory creation and enumeration.
Required Methods§
fn create_dir_one(&mut self, path: &Path, mode: u32) -> VfResult<()>
fn read_dir_one( &mut self, path: &Path, options: ReadDirOptions, ) -> VfResult<Vec<DirEntry>>
Sourcefn read_dir_page(
&mut self,
path: &Path,
cursor: Option<DirPageCursor>,
page_size: usize,
max_entries: usize,
) -> VfResult<(Vec<DirEntry>, Option<DirPageCursor>)>
fn read_dir_page( &mut self, path: &Path, cursor: Option<DirPageCursor>, page_size: usize, max_entries: usize, ) -> VfResult<(Vec<DirEntry>, Option<DirPageCursor>)>
Return one bounded page without invoking application code under a mutable backend borrow. The continuation token is backend-specific.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".