pub trait FsVisitor {
// Required method
fn visit_file(&mut self, info: FileInfo<'_>);
// Provided methods
fn failed_read_dir(&mut self, real: &Path, e: Error) { ... }
fn failed_next_dir_entry(&mut self, real: &Path, e: Error) { ... }
}Expand description
A trait to scan a directory of files
Required Methods§
Sourcefn visit_file(&mut self, info: FileInfo<'_>)
fn visit_file(&mut self, info: FileInfo<'_>)
Called when a file is visited
Provided Methods§
Sourcefn failed_read_dir(&mut self, real: &Path, e: Error)
fn failed_read_dir(&mut self, real: &Path, e: Error)
Called when read-dir fails
Sourcefn failed_next_dir_entry(&mut self, real: &Path, e: Error)
fn failed_next_dir_entry(&mut self, real: &Path, e: Error)
Called when read-dir fails