pub enum ThumbnailerError {
CouldntOpenFile(Error),
BoundError(u64),
UnsupportedIcon,
NoExtension,
UnsupportedExtension,
}Expand description
Error type for thumbnail extraction.
Variants§
CouldntOpenFile(Error)
Couldn’t open the file, either by missing permissions or the file not existing.
BoundError(u64)
Tried to read to an offset outside of the file. This probably means the file is corrupted or not from a supported format.
UnsupportedIcon
Wrong icon version. This may mean the file is corrupted or not from a supported format.
NoExtension
File name has no extension. We use the extension to determine which format we should decode.
UnsupportedExtension
File name has unsupported extension. We use the extension to determine which format we should decode.
Trait Implementations§
Source§impl Debug for ThumbnailerError
impl Debug for ThumbnailerError
Source§impl Display for ThumbnailerError
impl Display for ThumbnailerError
Source§impl Error for ThumbnailerError
impl Error for ThumbnailerError
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 ThumbnailerError
impl !RefUnwindSafe for ThumbnailerError
impl Send for ThumbnailerError
impl Sync for ThumbnailerError
impl Unpin for ThumbnailerError
impl !UnwindSafe for ThumbnailerError
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