pub enum Reason {
UnknownFileSystem,
UnsupportedOperation,
FileNotFound,
FileAlreadyExists,
FileContentNotUTF8,
InvalidPath,
Other,
}Expand description
The reason for a path operation error.
Variants§
UnknownFileSystem
The file system could not be resolved for the path.
UnsupportedOperation
The file system does not support the operation.
FileNotFound
The file was not found.
FileAlreadyExists
The file already exists.
FileContentNotUTF8
The file content was not properly encoded UTF-8.
InvalidPath
The path is invalid for the operation.
Other
Another uncategorized reason.
Trait Implementations§
impl Copy for Reason
impl Eq for Reason
Source§impl Ord for Reason
impl Ord for Reason
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialOrd for Reason
impl PartialOrd for Reason
impl StructuralPartialEq for Reason
Auto Trait Implementations§
impl Freeze for Reason
impl RefUnwindSafe for Reason
impl Send for Reason
impl Sync for Reason
impl Unpin for Reason
impl UnsafeUnpin for Reason
impl UnwindSafe for Reason
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