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

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.

There was an error deserializing an event. Contains the underlying error.

There was a communication error. Contains the underlying error.

Trait Implementations

impl<E: Copy, VE: Copy> Copy for Error<E, VE>
[src]

impl<E: Clone, VE: Clone> Clone for Error<E, VE>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<E: Debug, VE: Debug> Debug for Error<E, VE>
[src]

Formats the value using the given formatter. Read more

impl<E: PartialEq, VE: PartialEq> PartialEq for Error<E, VE>
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

impl<E, VE> Send for Error<E, VE> where
    E: Send,
    VE: Send

impl<E, VE> Sync for Error<E, VE> where
    E: Sync,
    VE: Sync