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]

[src]

Instantiates a new error

[src]

Returns the corresponding ErrorKind for this error.

Trait Implementations

impl From<Error> for Error
[src]

[src]

Performs the conversion.

impl From<Error> for Error
[src]

[src]

Performs the conversion.

impl Debug for Error
[src]

[src]

Formats the value using the given formatter. Read more

impl Display for Error
[src]

[src]

Formats the value using the given formatter. Read more

impl StdError for Error
[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 From<Error> for Error
[src]

[src]

Performs the conversion.

impl From<Error> for Error
[src]

[src]

Performs the conversion.

Auto Trait Implementations

impl Send for Error

impl Sync for Error