Trait mc_repack::errors::ErrorCollector
source · pub trait ErrorCollector {
// Required methods
fn collect(&mut self, name: String, e: Box<dyn Error>);
fn get_results(&mut self) -> Vec<(String, String)>;
}Expand description
This trait helps with collecting errors and returning the results.
Required Methods§
sourcefn collect(&mut self, name: String, e: Box<dyn Error>)
fn collect(&mut self, name: String, e: Box<dyn Error>)
Collects errors for files based on their name (path).
sourcefn get_results(&mut self) -> Vec<(String, String)>
fn get_results(&mut self) -> Vec<(String, String)>
Returns all currently gathered results.