#[non_exhaustive]pub enum Hidpp20Error {
Channel(ChannelError),
Feature(ErrorType),
UnsupportedResponse,
}Expand description
Represents an error that may occur when calling a HID++2.0 feature function.
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.
Channel(ChannelError)
Indicates that an error occurred while communicating across the HID++ channel.
Feature(ErrorType)
Indicates that a call to a HID++2.0 feature function resulted in an error.
UnsupportedResponse
Indicates that a received response is not fully supported.
Trait Implementations§
Source§impl Debug for Hidpp20Error
impl Debug for Hidpp20Error
Source§impl Display for Hidpp20Error
impl Display for Hidpp20Error
Source§impl Error for Hidpp20Error
impl Error for Hidpp20Error
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<ChannelError> for Hidpp20Error
impl From<ChannelError> for Hidpp20Error
Source§fn from(source: ChannelError) -> Self
fn from(source: ChannelError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for Hidpp20Error
impl !RefUnwindSafe for Hidpp20Error
impl Send for Hidpp20Error
impl Sync for Hidpp20Error
impl Unpin for Hidpp20Error
impl UnsafeUnpin for Hidpp20Error
impl !UnwindSafe for Hidpp20Error
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