Function serialport::open
[−]
[src]
pub fn open<T: AsRef<OsStr> + ?Sized>(port: &T) -> Result<Box<SerialPort>>
Opens the serial port indicated by the given device path
This is the canonical way to open a new serial port.
serialport::open("/dev/ttyUSB0");