Enum pix_engine::core::common::Error [−][src]
#[non_exhaustive]
pub enum Error {
RendererError(RendererError),
WindowError(WindowError),
StateError(Error),
ImageError(Error),
Conversion(Cow<'static, str>),
IoError(Error),
Other(Cow<'static, str>),
}Expand description
The error type for PixEngine operations.
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
RendererError(RendererError)An error from the underlying Renderer.
Tuple Fields of RendererError
WindowError(WindowError)An error from window operations.
Tuple Fields of WindowError
0: WindowErrorStateError(Error)An error from PixState.
Tuple Fields of StateError
0: ErrorImageError(Error)An error from Image
Tuple Fields of ImageError
0: ErrorAn error from invalid type conversions.
IoError(Error)I/O errors.
Tuple Fields of IoError
0: ErrorUnknown errors.
Trait Implementations
Performs the conversion.
Performs the conversion.