Trait assembly_pack::common::fs::FsVisitor

source ·
pub trait FsVisitor {
    // Required method
    fn visit_file<F: FileInfo>(&mut self, info: F);

    // 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<F: FileInfo>(&mut self, info: F)

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

Object Safety§

This trait is not object safe.

Implementors§