Enum vfs::error::VfsErrorKind
source · pub enum VfsErrorKind {
IoError(Error),
FileNotFound,
InvalidPath,
Other(String),
DirectoryExists,
FileExists,
NotSupported,
}
Expand description
The kinds of errors that can occur
Variants§
IoError(Error)
A generic I/O error
Certain standard I/O errors are normalized to their VfsErrorKind counterparts
FileNotFound
The file or directory at the given path could not be found
InvalidPath
The given path is invalid, e.g. because contains ‘.’ or ‘..’
Other(String)
Generic error variant
DirectoryExists
There is already a directory at the given path
FileExists
There is already a file at the given path
NotSupported
Functionality not supported by this filesystem
Trait Implementations§
source§impl Debug for VfsErrorKind
impl Debug for VfsErrorKind
source§impl Display for VfsErrorKind
impl Display for VfsErrorKind
source§impl From<VfsErrorKind> for VfsError
impl From<VfsErrorKind> for VfsError
The only way to create a VfsError is via a VfsErrorKind
This conversion implements certain normalizations
source§fn from(kind: VfsErrorKind) -> Self
fn from(kind: VfsErrorKind) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for VfsErrorKind
impl Send for VfsErrorKind
impl Sync for VfsErrorKind
impl Unpin for VfsErrorKind
impl !UnwindSafe for VfsErrorKind
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