pub enum Error {
    InvalidUartParity {
        value: u8,
    },
    InvalidBaudrate {
        rate: u8,
    },
    InvalidTransmissionMode {
        value: u8,
    },
    InvalidIoDriveMode {
        value: u8,
    },
    InvalidWakeupTime {
        value: u8,
    },
    InvalidFecMode {
        value: u8,
    },
    InvalidTransmissionPower {
        value: u8,
    },
}

Variants

InvalidUartParity

Fields

value: u8

Invalid UART parity.

InvalidBaudrate

Fields

rate: u8

Invalid baud rate.

InvalidTransmissionMode

Fields

value: u8

Invalid transmission mode.

InvalidIoDriveMode

Fields

value: u8

Invalid IO drive mode.

InvalidWakeupTime

Fields

value: u8

Invalid wakeup time.

InvalidFecMode

Fields

value: u8

Invalid Forward Error Correction mode.

InvalidTransmissionPower

Fields

value: u8

Invalid transmission power.

Trait Implementations

Formats the value using the given formatter. Read more
Formats the value using the given formatter. Read more
Returns a Backtrace that may be printed.
Returns an iterator for traversing the chain of errors, starting with the current error and continuing with recursive calls to Error::source. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
For maximum effectiveness, this needs to be called as a method to benefit from Rust’s automatic dereferencing of method receivers. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

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.