pub enum TranscodeError {
Decode(DecodeError),
Resize(ResizeError),
Encode(EncodeError),
DurationOverflow,
FrameCountOverflow,
FrameCountMismatch {
decoded: u32,
declared: u32,
},
}Expand description
Failure while transcoding an animated WebP sequence.
Variants§
Decode(DecodeError)
The source animation could not be decoded.
Resize(ResizeError)
The source or destination resize operation could not be created/applied.
Encode(EncodeError)
The destination encoder could not be created or finished.
DurationOverflow
The accumulated frame durations overflowed Duration.
FrameCountOverflow
The number of processed frames overflowed u32.
FrameCountMismatch
The decoder produced a different number of frames than the source metadata declared.
Trait Implementations§
Source§impl Clone for TranscodeError
impl Clone for TranscodeError
Source§fn clone(&self) -> TranscodeError
fn clone(&self) -> TranscodeError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TranscodeError
impl Debug for TranscodeError
Source§impl Display for TranscodeError
impl Display for TranscodeError
Source§impl Error for TranscodeError
impl Error for TranscodeError
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 PartialEq for TranscodeError
impl PartialEq for TranscodeError
impl StructuralPartialEq for TranscodeError
Auto Trait Implementations§
impl Freeze for TranscodeError
impl RefUnwindSafe for TranscodeError
impl Send for TranscodeError
impl Sync for TranscodeError
impl Unpin for TranscodeError
impl UnsafeUnpin for TranscodeError
impl UnwindSafe for TranscodeError
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