Function serialport::posix::available_ports[][src]

pub fn available_ports() -> Result<Vec<SerialPortInfo>>

Scans the system for serial ports and returns a list of them. The SerialPortInfo struct contains the name of the port which can be used for opening it.