pub enum WootingError {
Disconnected,
InvalidBufferSize,
}
Expand description
Represents an error that can occur when querying the state of a Wooting keyboard.
Variants§
Disconnected
Indicates that the keyboard is disconnected.
InvalidBufferSize
Indicates that the requested number of analog key values was invalid. Must be non-zero and less than sixteen.
Trait Implementations§
Source§impl Clone for WootingError
impl Clone for WootingError
Source§fn clone(&self) -> WootingError
fn clone(&self) -> WootingError
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 Debug for WootingError
impl Debug for WootingError
Source§impl Display for WootingError
impl Display for WootingError
Source§impl Error for WootingError
impl Error for WootingError
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()
Source§impl Hash for WootingError
impl Hash for WootingError
Source§impl PartialEq for WootingError
impl PartialEq for WootingError
impl Copy for WootingError
impl Eq for WootingError
impl StructuralPartialEq for WootingError
Auto Trait Implementations§
impl Freeze for WootingError
impl RefUnwindSafe for WootingError
impl Send for WootingError
impl Sync for WootingError
impl Unpin for WootingError
impl UnwindSafe for WootingError
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