Expand description
Bindings for serial port I/O and futures
This crate provides bindings between mio_serial
, a mio crate for
serial port I/O, and futures
. The API is very similar to the
bindings in mio_serial
Modules§
- frame
- A unified
Stream
andSink
interface to an underlyingSerialStream
, using theEncoder
andDecoder
traits to encode and decode frames.
Structs§
- Error
- An error type for serial port operations
- Serial
Port Builder - A struct containing all serial port settings
- Serial
Port Info - A device-independent implementation of serial port information
- Serial
Stream - Async serial port I/O
- UsbPort
Info - Contains all possible USB information about a
SerialPort
Enums§
- Clear
Buffer - Specifies which buffer or buffers to purge when calling
clear
- Data
Bits - Number of bits per character
- Error
Kind - Categories of errors that can occur when interacting with serial ports
- Flow
Control - Flow control modes
- Parity
- Parity checking modes
- Serial
Port Type - The physical type of a
SerialPort
- Stop
Bits - Number of stop bits
Traits§
- Serial
Port - A trait for serial port devices
- Serial
Port Builder Ext - An extension trait for serialport::SerialPortBuilder
Functions§
- available_
ports - Returns a list of all serial ports on system
- new
- Construct a builder of
SerialPort
objects
Type Aliases§
- Result
- A type for results generated by interacting with serial ports.