pub enum IdentifyError {
PathNotFound(String),
IoError(Error),
}Expand description
Errors that can occur during file identification.
Variants§
PathNotFound(String)
The specified path does not exist on the filesystem.
IoError(Error)
An I/O error occurred while accessing the file.
Trait Implementations§
Source§impl Debug for IdentifyError
impl Debug for IdentifyError
Source§impl Display for IdentifyError
impl Display for IdentifyError
Source§impl Error for IdentifyError
impl Error for IdentifyError
1.30.0 · 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()
Auto Trait Implementations§
impl Freeze for IdentifyError
impl !RefUnwindSafe for IdentifyError
impl Send for IdentifyError
impl Sync for IdentifyError
impl Unpin for IdentifyError
impl !UnwindSafe for IdentifyError
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