pub enum DirCompareError {
WalkDir(Error),
MissingEntry(OsString),
EntryTypeMismatch {
lhs: DirEntry,
rhs: DirEntry,
},
ContentsDiffer(String),
Io(Error),
}Expand description
Errors which may be returned from directory_compare.
Variants§
WalkDir(Error)
An error occurred when walking over either of the input directories.
MissingEntry(OsString)
An entry, requested as part of the expected entry set, was not present in one of the directories.
EntryTypeMismatch
The type of an entry differed (e.g., “file” vs “directory”) for a compared path.
ContentsDiffer(String)
The contents of a file differ between the compared paths.
Io(Error)
A generic I/O error occurred while accessing the filesystem.
Trait Implementations§
Source§impl Debug for DirCompareError
impl Debug for DirCompareError
Source§impl Display for DirCompareError
impl Display for DirCompareError
Source§impl Error for DirCompareError
impl Error for DirCompareError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Auto Trait Implementations§
impl Freeze for DirCompareError
impl !RefUnwindSafe for DirCompareError
impl Send for DirCompareError
impl Sync for DirCompareError
impl Unpin for DirCompareError
impl UnsafeUnpin for DirCompareError
impl !UnwindSafe for DirCompareError
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more