pub enum FileSystemError {
IoError(Error),
PathNotFound(PathBuf),
}Expand description
Error type for file system operations
Returned by FileSystemProvider methods when operations fail.
Variants§
IoError(Error)
I/O error from the underlying file system
PathNotFound(PathBuf)
The specified path was not found
Trait Implementations§
Source§impl Debug for FileSystemError
impl Debug for FileSystemError
Source§impl Display for FileSystemError
impl Display for FileSystemError
Source§impl Error for FileSystemError
impl Error for FileSystemError
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 FileSystemError
impl From<Error> for FileSystemError
Source§impl From<FileSystemError> for PolicyLoadError
impl From<FileSystemError> for PolicyLoadError
Source§fn from(source: FileSystemError) -> Self
fn from(source: 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