Function rustix::termios::speed_value
source · pub fn speed_value(speed: Speed) -> Option<u32>
Expand description
Translate from a Speed
code to a speed value u32
.
let speed = rustix::termios::speed_value(rustix::termios::B57600);
assert_eq!(speed, Some(57600));