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