Function termios::cfsetospeed [] [src]

pub fn cfsetospeed(termios: &mut Termios, speed: speed_t) -> Result<()>

Sets the output baud rate.

This function only sets the necessary values on the given Termios structure. The settings are applied on a successful call to tcsetattr().

Parameters

A value of B0 for speed deasserts the modem control lines when applied with tcsetattr(). This normally has the effect of disconnecting the line.

Examples

cfsetospeed(&mut termios, B9600).unwrap();
assert_eq!(cfgetospeed(&termios), B9600);