open

Function open 

Source
pub fn open<'a>(
    path: impl Into<Cow<'a, str>>,
    baud_rate: BaudRate,
    flow_control: FlowControl,
) -> Result<impl SerialPort>
Expand description

Opens a serial port depending on the local operating system.

ยงErrors

For errors please refer to SerialPortBuilder::open_native() and serialport::new().