Enum sram23x::Error[][src]

#[repr(u8)]pub enum Error<S, P> {
    SpiError(S),
    PinError(P),
    TooMuchData,
    InvalidAddress,
    InvalidAddressSize,
    InvalidOperatingMode,
    UnknownOperatingMode,
}

All possible errors in this crate

Variants

SpiError(S)

SPI bus error

PinError(P)

Pin error

TooMuchData

Too much data received/passed for a read or write

InvalidAddress

Memory address is out of range

InvalidAddressSize

Address size is invalid

InvalidOperatingMode

Operating mode is invalid, use set_mode() to change it

UnknownOperatingMode

Operating mode is unknown

Trait Implementations

impl<S: Debug, P: Debug> Debug for Error<S, P>[src]

Auto Trait Implementations

impl<S, P> Send for Error<S, P> where
    P: Send,
    S: Send
[src]

impl<S, P> Sync for Error<S, P> where
    P: Sync,
    S: Sync
[src]

impl<S, P> Unpin for Error<S, P> where
    P: Unpin,
    S: Unpin
[src]

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.