Struct lis2dh12::Error[][src]

pub struct Error<E> where
    E: Debug
{ /* fields omitted */ }
Expand description

Accelerometer errors, generic around another error type E representing an (optional) cause of this error.

Implementations

Create a new error

Create a new error with a cause

Get the kind of error which occurred

Get the cause of the underlying error (if applicable)

Convert this error into its underlying cause.

Panics if the error does not have a cause.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Create a new error from a cause, e.g. I2C or SPI I/O error

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.

Performs the conversion.

Should always be Self

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.