pub enum LcdError {
InvalidConfig(&'static str),
NotInitialized,
DisplayOff,
SleepMode,
InvalidWindow,
OutOfBounds,
InvalidCommand(u8),
InvalidDataLength {
expected: usize,
got: usize,
},
BusViolation(&'static str),
FrameRateExceeded,
}Variants§
InvalidConfig(&'static str)
NotInitialized
DisplayOff
SleepMode
InvalidWindow
OutOfBounds
InvalidCommand(u8)
InvalidDataLength
BusViolation(&'static str)
FrameRateExceeded
Trait Implementations§
Source§impl Error for LcdError
impl Error for LcdError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
impl Eq for LcdError
impl StructuralPartialEq for LcdError
Auto Trait Implementations§
impl Freeze for LcdError
impl RefUnwindSafe for LcdError
impl Send for LcdError
impl Sync for LcdError
impl Unpin for LcdError
impl UnsafeUnpin for LcdError
impl UnwindSafe for LcdError
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