Lines Matching refs:cfsetospeed
57 //! * `cfsetospeed()` - Takes `u32` or `BaudRate` on BSDs, `BaudRate` on Android/Linux
64 //! # use nix::sys::termios::{BaudRate, cfsetispeed, cfsetospeed, cfsetspeed, Termios};
68 //! cfsetospeed(&mut t, BaudRate::B9600).unwrap();
210 //! # use nix::sys::termios::{cfsetispeed, cfsetospeed, cfsetspeed, Termios};
214 //! cfsetospeed(&mut t, 9600u32);
1033 /// [cfsetospeed(3p)](https://pubs.opengroup.org/onlinepubs/9699919799/functions/cfsetospeed.html)).
1035 /// `cfsetospeed()` sets the output baud rate in the given termios structure.
1036 pub fn cfsetospeed<T: Into<u32>>(termios: &mut Termios, baud: T) -> Result<()> {
1038 let res = unsafe { libc::cfsetospeed(inner_termios, baud.into() as libc::speed_t) };
1087 /// [cfsetospeed(3p)](https://pubs.opengroup.org/onlinepubs/9699919799/functions/cfsetospeed.html)).
1089 /// `cfsetospeed()` sets the output baud rate in the given `Termios` structure.
1090 pub fn cfsetospeed(termios: &mut Termios, baud: BaudRate) -> Result<()> {
1092 let res = unsafe { libc::cfsetospeed(inner_termios, baud as libc::speed_t) };