Crate serial_io

Source
Expand description

§serial-io: A serial port IO library

serial-io is a fork of mio-serial with support for the tokio runtime. It combines therefore tokio-serial and adds support for tokio version 1.

serial-io provides a serial port implementation using mio.

Windows support is present but largely untested by the author

Structs§

AsyncSerial
Serial port I/O struct.
Error
An error type for serial port operations
Serial
*nix serial port using termios
SerialPortBuilder
A struct containing all serial port settings
SerialPortInfo
A device-independent implementation of serial port information

Enums§

ClearBuffer
Specifies which buffer or buffers to purge when calling clear
DataBits
Number of bits per character
ErrorKind
Categories of errors that can occur when interacting with serial ports
FlowControl
Flow control modes
Parity
Parity checking modes
StopBits
Number of stop bits

Traits§

SerialPort
A trait for serial port devices

Functions§

available_ports
Returns a list of all serial ports on system
build
Construct a builder of SerialPort objects

Type Aliases§

Result
A type for results generated by interacting with serial ports.