serialport-rs is a cross-platform serial port library.
The goal of this library is to expose a cross-platform and platform-specific API for enumerating
and using blocking I/O with serial ports. This library exposes a similar API to that provided
The library has been organized such that there is a high-level
SerialPort trait that provides
a cross-platform API for accessing serial ports. This is the preferred method of interacting
with ports and as such is part of the
in the root provide cross-platform functionality.
For platform-specific functionaly, this crate is split into a
windows API with
COMPort structs (that both implement the
Using the platform-specific
open*() functions will return the platform-specific port object
which allows access to platform-specific functionality.
The implementation of serialport for POSIX-based systems (Linux, BSD, Mac)
A module that exports types that are useful to have in scope.
An error type for serial port operations.
A device-independent implementation of serial port information.
A struct containing all serial port settings
Contains all possible USB information about a
Number of bits per character.
Categories of errors that can occur when interacting with serial ports.
Flow control modes.
Parity checking modes.
The physical type of a
Number of stop bits.
A trait for serial port devices
Returns a list of all serial ports on system
Opens the serial port specified by the device path using default settings.
Opens the serial port specified by the device path with the given settings.
A type for results generated by interacting with serial ports.