Enum avrox_display::GfxError
source · pub enum GfxError {
OutOfBounds,
IoError(IoError),
I2CBusError(TwiError),
PersistenceError(PersistenceError),
FileFormat,
MissingLayer,
NotSupported,
}
Expand description
Errors that might be returned by the graphics subsystem
Variants§
OutOfBounds
The coordinates that were given were out of bounds
IoError(IoError)
An IO error occurred
I2CBusError(TwiError)
An error communicating with the hardware device occurred
PersistenceError(PersistenceError)
An error with persistent data source
FileFormat
A bad file format was provided
MissingLayer
The requested layer type was not found in the given file
NotSupported
The requested functionality is not supported by the given resource (typically, you asked for a type of image from a file format that can’t provide it)
Trait Implementations§
source§impl From<PersistenceError> for GfxError
impl From<PersistenceError> for GfxError
source§fn from(e: PersistenceError) -> Self
fn from(e: PersistenceError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for GfxError
impl RefUnwindSafe for GfxError
impl Send for GfxError
impl Sync for GfxError
impl Unpin for GfxError
impl UnwindSafe for GfxError
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