pub enum IdentifyError {
PathNotFound {
path: String,
},
IoError {
source: Error,
},
InvalidPath {
path: String,
},
InvalidUtf8,
}
Expand description
Errors that can occur during file identification.
Variants§
PathNotFound
The specified path does not exist on the filesystem.
IoError
An I/O error occurred while accessing the file.
InvalidPath
The file path contains invalid UTF-8 sequences.
InvalidUtf8
The file content is not valid UTF-8 when UTF-8 is expected.
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
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