[][src]Enum directory_compare::DirCompareError

pub enum DirCompareError {
    WalkDir(Error),
    MissingEntry(OsString),
    EntryTypeMismatch {
        lhs: DirEntry,
        rhs: DirEntry,
    },
    ContentsDiffer(String),
    Io(Error),
}

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.

Fields of EntryTypeMismatch

lhs: DirEntryrhs: DirEntry
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

impl Debug for DirCompareError[src]

impl Display for DirCompareError[src]

impl Error for DirCompareError[src]

impl From<Error> for DirCompareError[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.