Enum modbus::Error [] [src]

pub enum Error {
    Exception(ExceptionCode),
    Io(Error),
    InvalidResponse,
    InvalidData(Reason),
    InvalidFunction,
    ParseCoilError,
}

Combination of Modbus, IO and data corruption errors

Variants

Exception(ExceptionCode)Io(Error)InvalidResponseInvalidData(Reason)InvalidFunctionParseCoilError

Trait Implementations

impl Debug for Error
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.

impl From<ExceptionCode> for Error
[src]

fn from(err: ExceptionCode) -> Error

Performs the conversion.

impl From<Error> for Error
[src]

fn from(err: Error) -> Error

Performs the conversion.

impl From<DecodingError> for Error
[src]

fn from(_err: DecodingError) -> Error

Performs the conversion.

impl From<EncodingError> for Error
[src]

fn from(_err: EncodingError) -> Error

Performs the conversion.

impl From<Error> for Error
[src]

fn from(_err: Error) -> Error

Performs the conversion.