pub enum FileSystemError {
PathNotFound(PathBuf),
SearchError(String),
FileClosed {
name: String,
},
InvalidUtf8(FromUtf8Error),
MaxDepthExceeded(u64),
PermissionDenied,
}Variants§
PathNotFound(PathBuf)
SearchError(String)
FileClosed
InvalidUtf8(FromUtf8Error)
MaxDepthExceeded(u64)
PermissionDenied
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<FileSystemError> for Error
impl From<FileSystemError> for Error
Source§fn from(source: FileSystemError) -> Self
fn from(source: FileSystemError) -> Self
Converts to this type from the input type.
Source§impl From<FromUtf8Error> for FileSystemError
impl From<FromUtf8Error> for FileSystemError
Source§fn from(source: FromUtf8Error) -> Self
fn from(source: FromUtf8Error) -> 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 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