Function enumerate_serial_ports
Source pub fn enumerate_serial_ports() -> Result<Vec<String>>
Expand description
Lists the serial ports that are connected to the computer
examples/list_ports.rs (
line 5)
4fn main() {
5 for device in serial_enumerate::enumerate_serial_ports().expect("Ports could not be listed") {
6 println!("{}", device);
7 }
8}