pub enum PreviewImageError {
CannotCreateFile {
path: PathBuf,
},
UnsupportedCodec {
codec: String,
},
OperationFailed {
reason: String,
},
Ffmpeg {
code: i32,
message: String,
},
Io(Error),
}Expand description
Errors that can occur while generating a sprite sheet or GIF preview.
Variants§
CannotCreateFile
The output file could not be created.
UnsupportedCodec
The requested codec is not available in this FFmpeg build.
OperationFailed
A preview-generation operation failed for a structural reason (e.g. zero rows/cols, or an internal filter-graph/encode step failed).
Ffmpeg
An underlying FFmpeg function returned an error code.
Fields
Io(Error)
An I/O error occurred.
Trait Implementations§
Source§impl Debug for PreviewImageError
impl Debug for PreviewImageError
Source§impl Display for PreviewImageError
impl Display for PreviewImageError
Source§impl Error for PreviewImageError
impl Error for PreviewImageError
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 PreviewImageError
impl From<Error> for PreviewImageError
Source§impl MediaError for PreviewImageError
impl MediaError for PreviewImageError
Auto Trait Implementations§
impl !RefUnwindSafe for PreviewImageError
impl !UnwindSafe for PreviewImageError
impl Freeze for PreviewImageError
impl Send for PreviewImageError
impl Sync for PreviewImageError
impl Unpin for PreviewImageError
impl UnsafeUnpin for PreviewImageError
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