[][src]Enum rubble::Error

pub enum Error {
    InvalidLength,
    InvalidValue,
    Eof,
    IncompleteParse,
    // some variants omitted
}

Errors returned by the BLE stack.

Variants

InvalidLength

Packet specified an invalid length value or was too short.

This indicates a protocol violation, so the connection should considered lost (if one is currently established).

InvalidValue

Invalid value supplied for field.

Eof

Unexpectedly reached EOF while reading or writing data.

This is returned when the application tries to fit too much data into a PDU or other fixed-size buffer, and also when reaching EOF prematurely while reading data from a buffer.

IncompleteParse

Parsing didn't consume the entire buffer.

Trait Implementations

impl Display for Error[src]

impl Debug for Error[src]

Auto Trait Implementations

impl Send for Error

impl Sync for Error

Blanket Implementations

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

type Error = Infallible

The type returned in the event of a conversion error.

impl<T> From for T[src]

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

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

The type returned in the event of a conversion error.

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

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

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

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