pub enum DecodeFailure {
ImageDecode,
StreamDecode,
JpxImage,
Decryption,
Unknown,
}Expand description
A failure that can occur during decoding a data stream.
Variants§
ImageDecode
An image stream failed to decode.
StreamDecode
A data stream failed to decode.
JpxImage
A JPEG2000 image was encountered, while the jpeg2000 feature was disabled.
Decryption
A failure occurred while decrypting a file.
Unknown
An unknown failure occurred.
Trait Implementations§
Source§impl Clone for DecodeFailure
impl Clone for DecodeFailure
Source§fn clone(&self) -> DecodeFailure
fn clone(&self) -> DecodeFailure
Returns a duplicate of the value. Read more
1.0.0 · 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 DecodeFailure
impl Debug for DecodeFailure
impl Copy for DecodeFailure
Auto Trait Implementations§
impl Freeze for DecodeFailure
impl RefUnwindSafe for DecodeFailure
impl Send for DecodeFailure
impl Sync for DecodeFailure
impl Unpin for DecodeFailure
impl UnwindSafe for DecodeFailure
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