Enum driver_pal::hal::error::HalError[][src]

pub enum HalError {
    InvalidConfig,
    InvalidSpiMode,
    NoPin,
    Cp2130(Error),
    Io(ErrorKind),
    Sysfs(Error),
}
Expand description

Error type combining SPI and Pin errors for utility

Variants

InvalidConfig
InvalidSpiMode
NoPin
Cp2130(Error)

Tuple Fields of Cp2130

0: Error

Tuple Fields of Io

0: ErrorKind
Sysfs(Error)

Tuple Fields of Sysfs

0: Error

Implementations

Check whether the HalError contains an underlying error type

Check whether the HalError signals no pin is available

Trait Implementations

Formats the value using the given formatter. Read more

Performs the conversion.

Performs the conversion.

Performs the conversion.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.