#[non_exhaustive]#[repr(u8)]pub enum ErrorType {
NoError = 0,
Unknown = 1,
InvalidArgument = 2,
OutOfRange = 3,
HwError = 4,
LogitechInternal = 5,
InvalidFeatureIndex = 6,
InvalidFunctionId = 7,
Busy = 8,
Unsupported = 9,
}Expand description
Represents the type of an error a HID++2.0 device returns if a feature function fails.
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.
NoError = 0
Unknown = 1
InvalidArgument = 2
OutOfRange = 3
HwError = 4
LogitechInternal = 5
InvalidFeatureIndex = 6
InvalidFunctionId = 7
Busy = 8
Unsupported = 9
Trait Implementations§
Source§impl TryFromPrimitive for ErrorType
impl TryFromPrimitive for ErrorType
impl Copy for ErrorType
impl Eq for ErrorType
impl StructuralPartialEq for ErrorType
Auto Trait Implementations§
impl Freeze for ErrorType
impl RefUnwindSafe for ErrorType
impl Send for ErrorType
impl Sync for ErrorType
impl Unpin for ErrorType
impl UnsafeUnpin for ErrorType
impl UnwindSafe for ErrorType
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