pub enum Error {
Critical(String),
ExtraExpected(PathBuf),
ExtraActual(PathBuf),
InvalidComparison {
expected: PathBuf,
actual: PathBuf,
},
FileContentsMismatch {
expected: PathBuf,
actual: PathBuf,
line: usize,
},
MissingPath(PathBuf),
}
Variants§
Critical(String)
Error with system IO, unrecoverable, ceasing traverse of current directory
ExtraExpected(PathBuf)
Extra expected item exists
ExtraActual(PathBuf)
Extra actual item exists
InvalidComparison
Found filename and directory sharing same name and path
FileContentsMismatch
Two files with same path have different contents
MissingPath(PathBuf)
Top level directories are missing (eg. actual folder wasn’t actually created)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Error
impl RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnwindSafe for Error
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more