Module image::error

source ·
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§

  • An error was encountered while decoding an image.
  • An error was encountered while encoding an image.
  • Completing the operation would have required more resources than allowed.
  • An error was encountered in inputs arguments.
  • The implementation for an operation was not provided.

Enums§

Type Aliases§

  • Result of an image decoding/encoding process