pub enum FilesError {
Scope(ScopeError),
Io(Error),
NotAFile,
}Expand description
Why a folder could not be listed or a file previewed. The path is not repeated.
Variants§
Scope(ScopeError)
The scope refused the file, or could not open it.
Io(Error)
The system refused or failed to read.
NotAFile
A preview was asked of something that is not a regular file.
Implementations§
Trait Implementations§
Source§impl Debug for FilesError
impl Debug for FilesError
Source§impl Display for FilesError
impl Display for FilesError
Source§impl Error for FilesError
impl Error for FilesError
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 FilesError
impl From<Error> for FilesError
Source§impl From<ScopeError> for FilesError
impl From<ScopeError> for FilesError
Source§fn from(error: ScopeError) -> Self
fn from(error: ScopeError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for FilesError
impl !UnwindSafe for FilesError
impl Freeze for FilesError
impl Send for FilesError
impl Sync for FilesError
impl Unpin for FilesError
impl UnsafeUnpin for FilesError
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