Skip to main content

builder

Function builder 

Source
pub fn builder(path: &str, baud_rate: u32) -> SerialPortBuilder
Available on crate feature serial only.
Expand description

Return a SerialPortBuilder preconfigured with the same defaults as open, but unopened, so the caller can apply further tweaks before calling .open().