#[non_exhaustive]pub enum ChannelError {
Implementation(Box<dyn Error + Sync + Send>),
ReportDescriptor(ParserError),
HidppNotSupported,
MessageTypeNotSupported,
NoResponse,
}Expand description
Represents an error that occurred when creating or interacting with a HID or HID++ communication channel.
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.
Implementation(Box<dyn Error + Sync + Send>)
Indicates that the concrete implementation of RawHidChannel returned
an error.
ReportDescriptor(ParserError)
Indicates that the HID report descriptor could not be parsed.
HidppNotSupported
Indicates that the channel in question does not support HID++.
MessageTypeNotSupported
Indicates that the HID++ channel does not support messages of the given type (short/long).
NoResponse
Indicates that no response was received following a request.
Trait Implementations§
Source§impl Debug for ChannelError
impl Debug for ChannelError
Source§impl Display for ChannelError
impl Display for ChannelError
Source§impl Error for ChannelError
impl Error for ChannelError
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 DeviceError
impl From<ChannelError> for DeviceError
Source§fn from(source: ChannelError) -> Self
fn from(source: ChannelError) -> Self
Converts to this type from the input type.
Source§impl From<ChannelError> for Hidpp10Error
impl From<ChannelError> for Hidpp10Error
Source§fn from(source: ChannelError) -> Self
fn from(source: ChannelError) -> Self
Converts to this type from the input type.
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 !RefUnwindSafe for ChannelError
impl !UnwindSafe for ChannelError
impl Freeze for ChannelError
impl Send for ChannelError
impl Sync for ChannelError
impl Unpin for ChannelError
impl UnsafeUnpin for ChannelError
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