Expand description
Contains detailed error representation.
See the main ImageError
which contains a variant for each specialized error type. The
subtypes used in each variant are opaque by design. They can be roughly inspected through their
respective kind
methods which work similar to std::io::Error::kind
.
The error interface makes it possible to inspect the error of an underlying decoder or encoder,
through the Error::source
method. Note that this is not part of the stable interface and you
may not rely on a particular error value for a particular operation. This means mainly that
image
does not promise to remain on a particular version of its underlying decoders but if
you ensure to use the same version of the dependency (or at least of the error type) through
external means then you could inspect the error type in slightly more detail.
Structs§
- Decoding
Error - An error was encountered while decoding an image.
- Encoding
Error - An error was encountered while encoding an image.
- Limit
Error - Completing the operation would have required more resources than allowed.
- Parameter
Error - An error was encountered in inputs arguments.
- Unsupported
Error - The implementation for an operation was not provided.
Enums§
- Image
Error - The generic error type for image operations.
- Image
Format Hint - A best effort representation for image formats.
- Limit
Error Kind - Indicates the limit that prevented an operation from completing.
- Parameter
Error Kind - Details how a parameter is malformed.
- Unsupported
Error Kind - Details what feature is not supported.
Type Aliases§
- Image
Result - Result of an image decoding/encoding process