pub enum TiffError {
FormatError(TiffFormatError),
UnsupportedError(TiffUnsupportedError),
IoError(Error),
LimitsExceeded,
IntSizeError,
UsageError(UsageError),
}
Expand description
Tiff error kinds.
Variants§
FormatError(TiffFormatError)
The Image is not formatted properly.
UnsupportedError(TiffUnsupportedError)
The Decoder does not support features required by the image.
IoError(Error)
An I/O Error occurred while decoding the image.
LimitsExceeded
The Limits of the Decoder is exceeded.
IntSizeError
An integer conversion to or from a platform size failed.
UsageError(UsageError)
The image does not support the requested operation
Trait Implementations§
Source§impl Error for TiffError
impl Error for TiffError
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<DecodeErrors> for TiffError
impl From<DecodeErrors> for TiffError
Source§fn from(err: DecodeErrors) -> Self
fn from(err: DecodeErrors) -> Self
Converts to this type from the input type.
Source§impl From<FromUtf8Error> for TiffError
impl From<FromUtf8Error> for TiffError
Source§fn from(_err: FromUtf8Error) -> TiffError
fn from(_err: FromUtf8Error) -> TiffError
Converts to this type from the input type.
Source§impl From<TiffFormatError> for TiffError
impl From<TiffFormatError> for TiffError
Source§fn from(err: TiffFormatError) -> TiffError
fn from(err: TiffFormatError) -> TiffError
Converts to this type from the input type.
Source§impl From<TiffUnsupportedError> for TiffError
impl From<TiffUnsupportedError> for TiffError
Source§fn from(err: TiffUnsupportedError) -> TiffError
fn from(err: TiffUnsupportedError) -> TiffError
Converts to this type from the input type.
Source§impl From<TryFromIntError> for TiffError
impl From<TryFromIntError> for TiffError
Source§fn from(_err: TryFromIntError) -> TiffError
fn from(_err: TryFromIntError) -> TiffError
Converts to this type from the input type.
Source§impl From<UsageError> for TiffError
impl From<UsageError> for TiffError
Source§fn from(err: UsageError) -> TiffError
fn from(err: UsageError) -> TiffError
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for TiffError
impl !RefUnwindSafe for TiffError
impl Send for TiffError
impl Sync for TiffError
impl Unpin for TiffError
impl !UnwindSafe for TiffError
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