pub enum Error {
NotConnected,
Initialization,
MonoBackground,
MonoText,
ColorBackground,
ColorTitle,
ColorText,
NullCharacter,
LoadLibrary(Error),
}Expand description
Runtime LCD error
The underling Logitech LCD/GamePanel SDK does unfortunately not return any info on error. We therefore only able report what function failed, but not why.
Variants§
NotConnected
A logitech LCD is not connected to the system.
Initialization
FFI call to LogiLcdInit() in LogitechLcd.dll has failed.
MonoBackground
FFI call to LogiLcdMonoSetBackground() in LogitechLcd.dll has failed.
MonoText
FFI call to LogiLcdMonoSetText() in LogitechLcd.dll has failed.
ColorBackground
FFI call to LogiLcdColorSetBackground() in LogitechLcd.dll has failed.
ColorTitle
FFI call to LogiLcdColorSetTitle() in LogitechLcd.dll has failed.
ColorText
FFI call to LogiLcdColorSetText() in LogitechLcd.dll has failed.
NullCharacter
Unexpected NULL character
LoadLibrary(Error)
Failed to load LogitechLcd.dll.
Trait Implementations§
Source§impl Error for Error
impl Error for Error
Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§fn cause(&self) -> Option<&dyn Error>
fn cause(&self) -> Option<&dyn Error>
👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
Auto Trait Implementations§
impl Freeze for Error
impl !RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl !UnwindSafe for Error
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