pub enum TraversalError<E: Debug + Display + StdError + 'static = RenderingError> {
DirectoryRead {
path: PathBuf,
cause: Error,
},
EntryRead {
dir: PathBuf,
cause: Error,
},
PathTransform {
path: PathBuf,
cause: E,
},
}
Expand description
An error encountered when traversing a file tree.
Variants§
DirectoryRead
Failed to get directory listing.
EntryRead
Failed to inspect entry from directory listing.
PathTransform
Failed to transform path.
Trait Implementations§
source§impl<E> Display for TraversalError<E>
impl<E> Display for TraversalError<E>
source§impl<E> Error for TraversalError<E>
impl<E> Error for TraversalError<E>
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<E> Freeze for TraversalError<E>where
E: Freeze,
impl<E = RenderingError> !RefUnwindSafe for TraversalError<E>
impl<E> Send for TraversalError<E>where
E: Send,
impl<E> Sync for TraversalError<E>where
E: Sync,
impl<E> Unpin for TraversalError<E>where
E: Unpin,
impl<E = RenderingError> !UnwindSafe for TraversalError<E>
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