#[non_exhaustive]pub enum SpaceMouseError {
Init(String),
NotConnected,
DeviceLost,
}Expand description
Errors reported by SpaceMouse.
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.
Init(String)
The HID subsystem could not be initialized. Carries hidapi’s message.
NotConnected
No device is open. See connect().
DeviceLost
The device was lost and has been closed. connect() can be called
again to scan for it.
Trait Implementations§
Source§impl Clone for SpaceMouseError
impl Clone for SpaceMouseError
Source§impl Debug for SpaceMouseError
impl Debug for SpaceMouseError
Source§impl Display for SpaceMouseError
impl Display for SpaceMouseError
impl Eq for SpaceMouseError
Source§impl Error for SpaceMouseError
impl Error for SpaceMouseError
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 PartialEq for SpaceMouseError
impl PartialEq for SpaceMouseError
impl StructuralPartialEq for SpaceMouseError
Auto Trait Implementations§
impl Forget for SpaceMouseError
impl Freeze for SpaceMouseError
impl Move for SpaceMouseError
impl RefUnwindSafe for SpaceMouseError
impl Send for SpaceMouseError
impl Sync for SpaceMouseError
impl Unpin for SpaceMouseError
impl UnsafeUnpin for SpaceMouseError
impl UnwindSafe for SpaceMouseError
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