[][src]Function serialport::open

pub fn open<T: AsRef<OsStr> + ?Sized>(port: &T) -> Result<Box<dyn SerialPort>>

Opens the serial port specified by the device path using default settings.

The default settings are:

This is the canonical way to open a new serial port.

serialport::open("/dev/ttyUSB0");