pub enum ThumbsError {
FileNotFound(String),
UnsupportedFormat(String),
ImageError(String),
SaveError(String),
PlatformError(String),
ThumbnailGenerationFailed(String),
PlatformNotSupported,
IoError(Error),
}Expand description
Errors that can occur during thumbnail generation.
Variants§
FileNotFound(String)
The specified file does not exist on disk.
UnsupportedFormat(String)
The file extension is not recognized as a supported format.
ImageError(String)
The OS failed to decode or open the image data.
SaveError(String)
Failed to write the thumbnail to the output path.
PlatformError(String)
A platform-specific API call failed (e.g., COM error on Windows, QuickLook error on macOS).
ThumbnailGenerationFailed(String)
The OS thumbnail provider returned no result. On Windows: no registered IThumbnailProvider for this file type. On macOS: QLThumbnailGenerator could not produce a representation.
PlatformNotSupported
The current platform is not supported (only macOS and Windows are).
IoError(Error)
Standard I/O error (file read/write failures).
Trait Implementations§
Source§impl Debug for ThumbsError
impl Debug for ThumbsError
Source§impl Display for ThumbsError
impl Display for ThumbsError
Source§impl Error for ThumbsError
impl Error for ThumbsError
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 ThumbsError
impl !RefUnwindSafe for ThumbsError
impl Send for ThumbsError
impl Sync for ThumbsError
impl Unpin for ThumbsError
impl UnsafeUnpin for ThumbsError
impl !UnwindSafe for ThumbsError
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