Enum bluetooth_hci::host::uart::Error [−][src]
pub enum Error<E, VE> { BadPacketType(u8), BLE(Error<VE>), Comm(E), }
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>
[src]
impl<E: Copy, VE: Copy> Copy for Error<E, VE>
impl<E: Clone, VE: Clone> Clone for Error<E, VE>
[src]
impl<E: Clone, VE: Clone> Clone for Error<E, VE>
fn clone(&self) -> Error<E, VE>
[src]
fn clone(&self) -> Error<E, VE>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl<E: Debug, VE: Debug> Debug for Error<E, VE>
[src]
impl<E: Debug, VE: Debug> Debug for Error<E, VE>
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl<E: PartialEq, VE: PartialEq> PartialEq for Error<E, VE>
[src]
impl<E: PartialEq, VE: PartialEq> PartialEq for Error<E, VE>