termios

Function cfgetispeed

Source
pub fn cfgetispeed(termios: &Termios) -> speed_t
Expand description

Gets the input baud rate stored in a Termios structure.

§Examples

cfsetispeed(&mut termios, B9600).unwrap();
assert_eq!(cfgetispeed(&termios), B9600);