#[non_exhaustive]pub enum CharacterDisplayError<I2C>where
I2C: I2c,{
I2cError(I2C::Error),
RowOutOfRange,
ColumnOutOfRange,
FormattingError(Error),
UnsupportedDisplayType,
UnsupportedOperation,
UnsupportedOperationWithMessage(&'static str),
ReadNotSupported,
BadDeviceId,
BufferTooSmall,
}Expand description
Errors that can occur when using the LCD backpack
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.
I2cError(I2C::Error)
I2C error returned from the underlying I2C implementation
RowOutOfRange
Row is out of range
ColumnOutOfRange
Column is out of range
FormattingError(Error)
Formatting error
UnsupportedDisplayType
The discplay type is not compatible with specific adapter.
UnsupportedOperation
👎Deprecated since 0.5.0: Use
UnsupportedOperationWithMessage insteadThe requested operation is not supported by the adapter or controller
UnsupportedOperationWithMessage(&'static str)
The requested operation is not supported by the adapter or controller. The string provides the name of the unsupported operation.
ReadNotSupported
Read operation is not supported by the adapter
BadDeviceId
Internal error - bad device ID
BufferTooSmall
Internal error - buffer too small
Trait Implementations§
Source§impl<I2C> Clone for CharacterDisplayError<I2C>
impl<I2C> Clone for CharacterDisplayError<I2C>
Source§fn clone(&self) -> CharacterDisplayError<I2C>
fn clone(&self) -> CharacterDisplayError<I2C>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<I2C> Debug for CharacterDisplayError<I2C>
impl<I2C> Debug for CharacterDisplayError<I2C>
Source§impl<I2C> Display for CharacterDisplayError<I2C>where
I2C: I2c,
impl<I2C> Display for CharacterDisplayError<I2C>where
I2C: I2c,
Source§impl<I2C> From<&CharacterDisplayError<I2C>> for &'static strwhere
I2C: I2c,
impl<I2C> From<&CharacterDisplayError<I2C>> for &'static strwhere
I2C: I2c,
Source§fn from(err: &CharacterDisplayError<I2C>) -> Self
fn from(err: &CharacterDisplayError<I2C>) -> Self
Converts to this type from the input type.
Source§impl<I2C> PartialEq for CharacterDisplayError<I2C>
impl<I2C> PartialEq for CharacterDisplayError<I2C>
impl<I2C> Copy for CharacterDisplayError<I2C>
impl<I2C> StructuralPartialEq for CharacterDisplayError<I2C>where
I2C: I2c,
Auto Trait Implementations§
impl<I2C> Freeze for CharacterDisplayError<I2C>
impl<I2C> RefUnwindSafe for CharacterDisplayError<I2C>
impl<I2C> Send for CharacterDisplayError<I2C>
impl<I2C> Sync for CharacterDisplayError<I2C>
impl<I2C> Unpin for CharacterDisplayError<I2C>
impl<I2C> UnwindSafe for CharacterDisplayError<I2C>
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