pub enum DirEntryError {
}Expand description
An error type for directory entry operations.
This enum represents various errors that can occur when working with directory entries, such as invalid paths, metadata errors, and IO errors.
Variants§
InvalidPath
InvalidStat
TimeError
MetadataError
Utf8Error(Utf8Error)
BrokenPipe(Error)
OSerror(Error)
Success
AccessDenied(Error)
WriteError(Error)
RayonError(ThreadPoolBuildError)
RegexError(Error)
NotADirectory
TooManySymbolicLinks
Trait Implementations§
Source§impl Debug for DirEntryError
impl Debug for DirEntryError
Source§impl Display for DirEntryError
impl Display for DirEntryError
Source§impl Error for DirEntryError
impl Error for DirEntryError
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()
Source§impl From<Error> for DirEntryError
impl From<Error> for DirEntryError
Auto Trait Implementations§
impl Freeze for DirEntryError
impl !RefUnwindSafe for DirEntryError
impl Send for DirEntryError
impl Sync for DirEntryError
impl Unpin for DirEntryError
impl !UnwindSafe for DirEntryError
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