pub async fn open_serial_device(baud_rate: u32) -> Result<DeviceProxy>Expand description
Discovers a serial device under /dev/class/serial and configures it for 8N1 at baud_rate.
Prefers Class::Generic ports over Class::Console ports.
ยงErrors
Returns TargetDriverError::NoSerialPorts if no usable port is found, or
propagates filesystem and FIDL errors encountered during discovery.