Enum BaudRate
#[repr(u32)]
#[non_exhaustive]
pub enum BaudRate
Baud rates supported by the system.
For the BSDs, arbitrary baud rates can be specified by using u32s directly instead of this
enum.
B0 is special and will disable the port.
Variants
-
B0 = libc::B0 -
B50 = libc::B50 -
B75 = libc::B75 -
B110 = libc::B110 -
B134 = libc::B134 -
B150 = libc::B150 -
B200 = libc::B200 -
B300 = libc::B300 -
B600 = libc::B600 -
B1200 = libc::B1200 -
B1800 = libc::B1800 -
B2400 = libc::B2400 -
B4800 = libc::B4800 -
B9600 = libc::B9600 -
B19200 = libc::B19200 -
B38400 = libc::B38400 -
B57600 = libc::B57600 -
B115200 = libc::B115200 -
B230400 = libc::B230400 -
B460800 = libc::B460800 -
B500000 = libc::B500000 -
B576000 = libc::B576000 -
B921600 = libc::B921600 -
B1000000 = libc::B1000000 -
B1152000 = libc::B1152000 -
B1500000 = libc::B1500000 -
B2000000 = libc::B2000000 -
B2500000 = libc::B2500000 -
B3000000 = libc::B3000000 -
B3500000 = libc::B3500000 -
B4000000 = libc::B4000000
Trait Implementations
impl Clone for BaudRate
fn clone(&self) -> Self
impl Copy for BaudRate
impl Debug for BaudRate
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl Eq for BaudRate
impl Hash for BaudRate
fn hash<__H: Hasher>(&self, state: &mut __H)
impl Ord for BaudRate
fn cmp(&self, other: &Self) -> Ordering
impl PartialEq for BaudRate
fn eq(&self, other: &Self) -> bool
impl PartialOrd for BaudRate
fn partial_cmp(&self, other: &Self) -> Option<Ordering>
impl StructuralPartialEq for BaudRate
impl TryFrom<u32> for BaudRate
type Error = Errno;fn try_from(x: speed_t) -> Result<Self>