Enum etherdream::EtherdreamError [] [src]

pub enum EtherdreamError {
    BadResponseLength {
        description: String,
    },
    IoError {
        cause: IoError,
    },
    ReceivedNack {
        code: AckCode,
        command: CommandCode,
    },
    WrongResponse,
}

Represents all of the errors in the Etherdream library.

Variants

Invalid length for an Etherdream response.

Fields of BadResponseLength

Description of the error.

Network error.

Fields of IoError

Cause of the error.

Received a NACK from the EtherDream in response to a command.

Fields of ReceivedNack

Type of NACK received.

The command the NACK was in response to.

We received a response for the wrong command.

Trait Implementations

impl Debug for EtherdreamError
[src]

[src]

Formats the value using the given formatter.

impl Error for EtherdreamError
[src]

[src]

A short description of the error. Read more

1.0.0
[src]

The lower-level cause of this error, if any. Read more

impl Display for EtherdreamError
[src]

[src]

Formats the value using the given formatter. Read more

impl From<IoError> for EtherdreamError
[src]

[src]

Performs the conversion.