pub enum SafeTraversalError {
PathContainsNull,
OpenFailed {
path: PathBuf,
source: Error,
},
StatFailed {
path: PathBuf,
source: Error,
},
ReadDirFailed {
path: PathBuf,
source: Error,
},
UnlinkFailed {
path: PathBuf,
source: Error,
},
}Variants§
Trait Implementations§
Source§impl Debug for SafeTraversalError
impl Debug for SafeTraversalError
Source§impl Display for SafeTraversalError
impl Display for SafeTraversalError
Source§impl Error for SafeTraversalError
impl Error for SafeTraversalError
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<SafeTraversalError> for Error
impl From<SafeTraversalError> for Error
Source§fn from(err: SafeTraversalError) -> Self
fn from(err: SafeTraversalError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for SafeTraversalError
impl !RefUnwindSafe for SafeTraversalError
impl Send for SafeTraversalError
impl Sync for SafeTraversalError
impl Unpin for SafeTraversalError
impl UnsafeUnpin for SafeTraversalError
impl !UnwindSafe for SafeTraversalError
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