pub enum Error<E, VE> {
BadPacketType(u8),
BLE(Error<VE>),
Comm(E),
}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<VE>)
There was an error deserializing an event. Contains the underlying error.
Comm(E)
There was a communication error. Contains the underlying error.
Trait Implementations§
impl<E: Copy, VE: Copy> Copy for Error<E, VE>
impl<E, VE> StructuralPartialEq for Error<E, VE>
Auto Trait Implementations§
impl<E, VE> Freeze for Error<E, VE>
impl<E, VE> RefUnwindSafe for Error<E, VE>where
E: RefUnwindSafe,
VE: RefUnwindSafe,
impl<E, VE> Send for Error<E, VE>
impl<E, VE> Sync for Error<E, VE>
impl<E, VE> Unpin for Error<E, VE>
impl<E, VE> UnwindSafe for Error<E, VE>where
E: UnwindSafe,
VE: UnwindSafe,
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