Struct mio_serial::Error
[−]
[src]
pub struct Error {
pub kind: ErrorKind,
pub description: String,
}An error type for serial port operations.
Fields
kind: ErrorKind
The kind of error this is
description: String
A description of the error suitable for end-users
Methods
impl Error[src]
fn new<T>(kind: ErrorKind, description: T) -> Error where
T: Into<String>, [src]
T: Into<String>,
Instantiates a new error
fn kind(&self) -> ErrorKind[src]
Returns the corresponding ErrorKind for this error.