[][src]Enum bluetooth_hci::event::Error

pub enum Error<V> {
    UnknownEvent(u8),
    BadLength(usize, usize),
    BadStatus(u8),
    BadLinkType(u8),
    BadEncryptionEnabledValue(u8),
    BadReason(u8),
    BadEncryptionType(u8),
    UnknownOpcode(Opcode),
    BadCommandFlag,
    InvalidChannelMap([u8; 5]),
    InvalidLeStates(u64),
    BadLeConnectionRole(u8),
    BadLeAddressType(u8),
    BadConnectionInterval(ConnectionIntervalError),
    BadLeCentralClockAccuracy(u8),
    LeAdvertisementReportIncomplete,
    BadLeAdvertisementType(u8),
    BadRemoteUsedFeatureFlag(u64),
    Vendor(V),
}

Errors that may occur when deserializing an event. Must be specialized by the vendor crate to allow for vendor-specific event errors.

Variants

UnknownEvent(u8)

The event type byte was unknown. The byte is provided.

BadLength(usize, usize)

The buffer provided that is supposed to contain an event does not have the correct length. Field 0 is the provided length, field 1 is the expected length.

BadStatus(u8)

For all events: The status was not recognized (reserved for future use). Includes the unrecognized byte.

BadLinkType(u8)

For the Connection Complete or Data Buffer Overflow events: the link type was not recognized (reserved for future use). Includes the unrecognized byte.

BadEncryptionEnabledValue(u8)

For the Connection Complete event: the encryption enabled value was not recognized (reserved for future use). Includes the unrecognized byte.

BadReason(u8)

For the Disconnection Complete event: the disconnection reason was not recognized. Includes the unrecognized byte.

BadEncryptionType(u8)

For the Encryption Change event: The encryption type was not recognized. Includes the unrecognized byte.

UnknownOpcode(Opcode)

For the Command Complete event: The event indicated a command completed whose opcode was not recognized. Includes the unrecognized opcode.

BadCommandFlag

For the Command Complete event, for the Read Local Supported Commands command return parameters: The returned command flags are invalid (i.e., they include a flag that is reserved for future use).

InvalidChannelMap([u8; 5])

For the Command Complete event, for the LE Read Channel Map command return parameters: The returned channel map includes a reserved bit.

InvalidLeStates(u64)

For the Command Complete event, for the LE Read Supported States command return parameters: The returned supported states bitfield includes a reserved bit.

BadLeConnectionRole(u8)

For the LE Connection Complete event: The connection role was not recognized. Includes the unrecognized byte.

BadLeAddressType(u8)

For the LE Connection Complete or LE Advertising Report events: The address type was not recognized. Includes the unrecognized byte.

BadConnectionInterval(ConnectionIntervalError)

For the LE Connection Complete event: The returned connection interval was invalid. Includes the error returned when attempting to create the FixedConnectionInterval.

BadLeCentralClockAccuracy(u8)

For the LE Connection Complete event: The central clock accuracy value was not recognized. Includes the unrecognized byte.

LeAdvertisementReportIncomplete

For the LE Advertising Report event: The packet ended with a partial report.

BadLeAdvertisementType(u8)

For the LE Advertising Report event: The packet includes an invalid advertisement type. Includes the unrecognized byte.

BadRemoteUsedFeatureFlag(u64)

For the LE Read Remote Used Features Complete event: The response included an invalid bit set for the remote features. Includes the 8 bytes of flags.

Vendor(V)

A vendor-specific error was detected when deserializing a vendor-specific event.

Trait Implementations

impl<V: Clone> Clone for Error<V>[src]

impl<V: Copy> Copy for Error<V>[src]

impl<V: Debug> Debug for Error<V>[src]

impl<V: PartialEq> PartialEq<Error<V>> for Error<V>[src]

impl<V> StructuralPartialEq for Error<V>[src]

Auto Trait Implementations

impl<V> Send for Error<V> where
    V: Send

impl<V> Sync for Error<V> where
    V: Sync

impl<V> Unpin for Error<V> where
    V: Unpin

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.