Lines Matching refs:baud
50 //! support arbitrary baud rates as the values of the `BaudRate` enum constants are the same integer
60 //! The most common use case of specifying a baud rate using the enum will work the same across
73 //! Additionally round-tripping baud rates is consistent across platforms:
185 //! And on BSDs you can specify arbitrary baud rates (**note** this depends on hardware support)
186 //! by specifying baud rates directly using `u32`s:
354 /// For the BSDs, arbitrary baud rates can be specified by using `u32`s directly instead of this
999 /// Get input baud rate (see
1002 /// `cfgetispeed()` extracts the input baud rate from the given `Termios` structure.
1010 /// Get output baud rate (see
1013 /// `cfgetospeed()` extracts the output baud rate from the given `Termios` structure.
1021 /// Set input baud rate (see
1024 /// `cfsetispeed()` sets the intput baud rate in the given `Termios` structure.
1025 pub fn cfsetispeed<T: Into<u32>>(termios: &mut Termios, baud: T) -> Result<()> {
1027 let res = unsafe { libc::cfsetispeed(inner_termios, baud.into() as libc::speed_t) };
1032 /// Set output baud rate (see
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) };
1043 /// Set both the input and output baud rates (see
1046 /// `cfsetspeed()` sets the input and output baud rate in the given termios structure. Note that
1048 pub fn cfsetspeed<T: Into<u32>>(termios: &mut Termios, baud: T) -> Result<()> {
1050 let res = unsafe { libc::cfsetspeed(inner_termios, baud.into() as libc::speed_t) };
1057 /// Get input baud rate (see
1060 /// `cfgetispeed()` extracts the input baud rate from the given `Termios` structure.
1066 /// Get output baud rate (see
1069 /// `cfgetospeed()` extracts the output baud rate from the given `Termios` structure.
1075 /// Set input baud rate (see
1078 /// `cfsetispeed()` sets the intput baud rate in the given `Termios` structure.
1079 pub fn cfsetispeed(termios: &mut Termios, baud: BaudRate) -> Result<()> {
1081 let res = unsafe { libc::cfsetispeed(inner_termios, baud as libc::speed_t) };
1086 /// Set output baud rate (see
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) };
1097 /// Set both the input and output baud rates (see
1100 /// `cfsetspeed()` sets the input and output baud rate in the given `Termios` structure. Note that
1103 pub fn cfsetspeed(termios: &mut Termios, baud: BaudRate) -> Result<()> {
1105 let res = unsafe { libc::cfsetspeed(inner_termios, baud as libc::speed_t) };