pub enum Error {
BadPacketType(u8),
BLE(Error),
}
Expand description
Potential errors from reading or writing packets to the controller.
Must be specialized both for communication errors (E
) and vendor-specific errors (VE
).
Variants§
BadPacketType(u8)
The host expected the controller to begin a packet, but the next byte is not a valid packet type byte. Contains the value of the byte.
BLE(Error)
There was an error deserializing an event. Contains the underlying error.
Trait Implementations§
impl Copy for Error
impl StructuralPartialEq for Error
Auto Trait Implementations§
impl Freeze for Error
impl RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnwindSafe for Error
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