#[non_exhaustive]pub enum ChannelError {
Implementation(Box<dyn Error + Sync + Send>),
ReportDescriptor(ParserError),
HidppNotSupported,
MessageTypeNotSupported,
InvalidRawReportLength(usize),
NoResponse,
Timeout,
}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
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).
InvalidRawReportLength(usize)
Indicates that a raw output report was empty or exceeded 64 bytes.
NoResponse
Indicates that no response was received following a request.
Timeout
Indicates that a bounded channel operation did not complete — typically
because the device is asleep, out of range, connected to another host,
or its transport write is wedged. See
HidppChannel::send_with_timeout and
HidppChannel::write_raw_report.
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)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()