Trait assembly_pack::common::fs::FsVisitor
source · 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