parallel_disk_usage/reporter/error_report.rs
1pub mod operation;
2
3pub use operation::Operation;
4
5use std::{io::Error, path::Path};
6
7/// Information regarding a filesystem error.
8#[derive(Debug)]
9pub struct ErrorReport<'a> {
10 /// Operation that caused the error.
11 pub operation: Operation,
12 /// Path where the error occurred.
13 pub path: &'a Path,
14 /// The error.
15 pub error: Error,
16}
17
18impl<'a> ErrorReport<'a> {
19 /// Do nothing.
20 pub const SILENT: fn(ErrorReport) = |_| {};
21}
22
23mod text_report;