[][src]Enum btle::bytes::BufError

pub enum BufError {
    OutOfRange(usize),
    InvalidIndex(usize),
    BadBytes(usize),
    InvalidInput,
}

Variants

OutOfRange(usize)

The given index/usize is out of range. (overflow, underflow)

InvalidIndex(usize)

The given index/usize is invalid. (misaligned, non-sensible)

BadBytes(usize)

The bytes at positive/usize are invalid. Used if its possible to pass a 'bad' sequence of bytes values. (Ex: Trying to turn a byte that isn't a 0 or 1 into a bool).

InvalidInput

Input is completely invalid. Used when unable to pinpoint an index where the bad bytes are.

Trait Implementations

impl Clone for BufError[src]

impl Copy for BufError[src]

impl Debug for BufError[src]

impl Eq for BufError[src]

impl Hash for BufError[src]

impl PartialEq<BufError> for BufError[src]

impl StructuralEq for BufError[src]

impl StructuralPartialEq for BufError[src]

Auto Trait Implementations

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> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.