#[non_exhaustive]pub enum Hidpp10Error {
Channel(ChannelError),
RegisterAccess(ErrorType),
UnsupportedResponse,
}Expand description
Represents an error that may occur when accessing registers using HID++1.0.
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.
RegisterAccess(ErrorType)
Indicates that a register access failed.
UnsupportedResponse
Indicates that a received response is not fully supported.
Trait Implementations§
Source§impl Debug for Hidpp10Error
impl Debug for Hidpp10Error
Source§impl Display for Hidpp10Error
impl Display for Hidpp10Error
Source§impl Error for Hidpp10Error
impl Error for Hidpp10Error
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 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<Hidpp10Error> for ReceiverError
impl From<Hidpp10Error> for ReceiverError
Source§fn from(source: Hidpp10Error) -> Self
fn from(source: Hidpp10Error) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for Hidpp10Error
impl !RefUnwindSafe for Hidpp10Error
impl Send for Hidpp10Error
impl Sync for Hidpp10Error
impl Unpin for Hidpp10Error
impl UnsafeUnpin for Hidpp10Error
impl !UnwindSafe for Hidpp10Error
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