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