pub enum ControllerError {
PackageNotFound(u32),
PackagePathError(u32),
DllLoad(Error),
RpcInitFailed,
AlreadyInitialized,
InvalidSliderValue {
mode: &'static str,
value: u8,
min: u8,
max: u8,
},
Io(Error),
ModeNotDetected,
DimmingFailed(i64),
}Expand description
Errors that can occur when using the ASUS display controller.
Variants§
PackageNotFound(u32)
The ASUS PC Assistant package was not found.
PackagePathError(u32)
Failed to get the package installation path.
DllLoad(Error)
Failed to load the ASUS DLL.
RpcInitFailed
RPC client initialization failed.
AlreadyInitialized
Attempted to create a second controller instance.
InvalidSliderValue
A slider value was outside the valid range.
Fields
Io(Error)
An I/O error occurred (e.g., copying the DLL).
ModeNotDetected
Failed to detect the current display mode.
DimmingFailed(i64)
Failed to set the dimming level.
Trait Implementations§
Source§impl Debug for ControllerError
impl Debug for ControllerError
Source§impl Display for ControllerError
impl Display for ControllerError
Source§impl Error for ControllerError
impl Error for ControllerError
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()
Source§impl From<Error> for ControllerError
impl From<Error> for ControllerError
Auto Trait Implementations§
impl Freeze for ControllerError
impl !RefUnwindSafe for ControllerError
impl Send for ControllerError
impl Sync for ControllerError
impl Unpin for ControllerError
impl !UnwindSafe for ControllerError
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