Struct serialport::Error[][src]

pub struct Error {
    pub kind: ErrorKind,
    pub description: String,
}

An error type for serial port operations.

Fields

The kind of error this is

A description of the error suitable for end-users

Methods

impl Error
[src]

Instantiates a new error

Returns the corresponding ErrorKind for this error.

Trait Implementations

impl Debug for Error
[src]

Formats the value using the given formatter. Read more

impl Display for Error
[src]

Formats the value using the given formatter. Read more

impl StdError for Error
[src]

This method is soft-deprecated. Read more

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

impl From<Error> for Error
[src]

Performs the conversion.

impl From<Error> for Error
[src]

Performs the conversion.

Auto Trait Implementations

impl Send for Error

impl Sync for Error