pub enum Jpeg2000Error {
Show 18 variants
InvalidSignature,
InvalidBoxType(String),
BoxParseError {
box_type: String,
reason: String,
},
InvalidMarker(u16),
CodestreamError(String),
UnsupportedFeature(String),
InvalidImageHeader(String),
InvalidTile(String),
WaveletError(String),
Tier1Error(String),
Tier2Error(String),
ColorError(String),
InvalidMetadata(String),
IoError(Error),
InsufficientData {
expected: usize,
actual: usize,
},
InvalidDimension(String),
AllocationError(String),
Other(String),
}Expand description
JPEG2000 specific errors
Variants§
InvalidSignature
Invalid JP2 signature
InvalidBoxType(String)
Invalid box type
BoxParseError
Box parsing error
InvalidMarker(u16)
Invalid codestream marker
CodestreamError(String)
Codestream parsing error
UnsupportedFeature(String)
Unsupported feature
InvalidImageHeader(String)
Invalid image header
InvalidTile(String)
Invalid tile
WaveletError(String)
Wavelet transform error
Tier1Error(String)
Tier-1 decoding error
Tier2Error(String)
Tier-2 decoding error
ColorError(String)
Color space conversion error
InvalidMetadata(String)
Invalid metadata
IoError(Error)
IO error
InsufficientData
Insufficient data
InvalidDimension(String)
Invalid dimension
AllocationError(String)
Memory allocation error
Other(String)
Generic error
Trait Implementations§
Source§impl Debug for Jpeg2000Error
impl Debug for Jpeg2000Error
Source§impl Display for Jpeg2000Error
impl Display for Jpeg2000Error
Source§impl Error for Jpeg2000Error
impl Error for Jpeg2000Error
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 Jpeg2000Error
impl !RefUnwindSafe for Jpeg2000Error
impl Send for Jpeg2000Error
impl Sync for Jpeg2000Error
impl Unpin for Jpeg2000Error
impl UnsafeUnpin for Jpeg2000Error
impl !UnwindSafe for Jpeg2000Error
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