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§

source

fn visit_file(&mut self, info: FileInfo<'_>)

Called when a file is visited

Provided Methods§

source

fn failed_read_dir(&mut self, real: &Path, e: Error)

Called when read-dir fails

source

fn failed_next_dir_entry(&mut self, real: &Path, e: Error)

Called when read-dir fails

Implementors§