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, either due to limits of the platform size or limits of the format.
UsageError(UsageError)
The image does not support the requested operation
Trait Implementations§
source§impl Error for TiffError
impl Error for TiffError
source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
source§fn cause(&self) -> Option<&dyn Error>
fn cause(&self) -> Option<&dyn Error>
👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
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<JpegDecoderError> for TiffError
impl From<JpegDecoderError> for TiffError
source§fn from(error: JpegDecoderError) -> Self
fn from(error: JpegDecoderError) -> Self
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
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more