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
BadResponseLength
Invalid length for an Etherdream response.
Fields of BadResponseLength
description: String | Description of the error. |
IoError
Network error.
Fields of IoError
cause: IoError | Cause of the error. |
ReceivedNack
Received a NACK from the EtherDream in response to a command.
Fields of ReceivedNack
code: AckCode | Type of NACK received. |
command: CommandCode | The command the NACK was in response to. |
WrongResponse
We received a response for the wrong command.
Trait Implementations
impl Debug for EtherdreamError
[src]
impl Error for EtherdreamError
[src]
fn description(&self) -> &str
A short description of the error. Read more
fn cause(&self) -> Option<&Error>
1.0.0
The lower-level cause of this error, if any. Read more