pub enum FileSystemError {
NotFound(Box<dyn Any>),
Other(Box<dyn Any>),
}Expand description
An error encountered when doing file or directory operations.
Rather than make everything generic over the type of errors, we use
Box<dyn Any> to hold platform-native errors.
Variants§
Trait Implementations§
Source§impl Debug for FileSystemError
impl Debug for FileSystemError
Source§impl From<FileSystemError> for Error
impl From<FileSystemError> for Error
Source§fn from(value: FileSystemError) -> Self
fn from(value: FileSystemError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for FileSystemError
impl !RefUnwindSafe for FileSystemError
impl !Send for FileSystemError
impl !Sync for FileSystemError
impl Unpin for FileSystemError
impl UnsafeUnpin for FileSystemError
impl !UnwindSafe for FileSystemError
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