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
sourceimpl Error for TiffError
impl Error for TiffError
sourcefn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
sourcefn cause(&self) -> Option<&dyn Error>
fn cause(&self) -> Option<&dyn Error>
replaced by Error::source, which can support downcasting
1.30.0 · sourcefn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
sourceimpl From<FromUtf8Error> for TiffError
impl From<FromUtf8Error> for TiffError
sourcefn from(_err: FromUtf8Error) -> TiffError
fn from(_err: FromUtf8Error) -> TiffError
Converts to this type from the input type.
sourceimpl From<TiffFormatError> for TiffError
impl From<TiffFormatError> for TiffError
sourcefn from(err: TiffFormatError) -> TiffError
fn from(err: TiffFormatError) -> TiffError
Converts to this type from the input type.
sourceimpl From<TiffUnsupportedError> for TiffError
impl From<TiffUnsupportedError> for TiffError
sourcefn from(err: TiffUnsupportedError) -> TiffError
fn from(err: TiffUnsupportedError) -> TiffError
Converts to this type from the input type.
sourceimpl From<TryFromIntError> for TiffError
impl From<TryFromIntError> for TiffError
sourcefn from(_err: TryFromIntError) -> TiffError
fn from(_err: TryFromIntError) -> TiffError
Converts to this type from the input type.
sourceimpl From<UsageError> for TiffError
impl From<UsageError> for TiffError
sourcefn from(err: UsageError) -> TiffError
fn from(err: UsageError) -> TiffError
Converts to this type from the input type.
Auto Trait Implementations
impl !RefUnwindSafe for TiffError
impl Send for TiffError
impl Sync for TiffError
impl Unpin for TiffError
impl !UnwindSafe for TiffError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more