[][src]Enum embedded_error::ImplError

#[non_exhaustive]pub enum ImplError {
    Internal,
    Disconnected,
    OutOfMemory,
    TimedOut,
    Asleep,
    PowerDown,
    InvalidConfiguration,
    CouldNotOpen,
    PermissionDenied,
}

A universal implementation specific error.

These error kinds can be used to signal implementation specific errors unrelated to the specific peripheral. This will be used for all sorts of connectivity problems, e.g. if an adapter to the peripheral is used or the target peripheral is connected to indirectly (like bus expanders) or an operating system is controlling the access and denying access.

Variants (Non-exhaustive)

Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Internal

Unspecified internal driver error

Disconnected

Connection lost, e.g. device adapter was unplugged

OutOfMemory

Ran out of memory while trying to allocate required buffers

TimedOut

Operation timed out, please retry

Asleep

Peripheral is sleeping or in standby

PowerDown

Peripheral is powered down

InvalidConfiguration

The peripheral cannot work with the specified settings

CouldNotOpen

Could not open connection to peripheral

PermissionDenied

No sufficient permissions to connect to peripheral

Trait Implementations

impl Clone for ImplError[src]

impl Debug for ImplError[src]

Auto Trait Implementations

impl Send for ImplError

impl Sync for ImplError

impl Unpin for ImplError

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.