Enum nix::sys::termios::BaudRate

#[repr(u32)]
#[non_exhaustive]
pub enum BaudRate {    
    B0,
    B50,
    B75,
    B110,
    B134,
    B150,
    B200,
    B300,
    B600,
    B1200,
    B1800,
    B2400,
    B4800,
    B9600,
    B19200,
    B38400,
    B57600,
    B115200,
    B230400,
    B460800,
    B500000,
    B576000,
    B921600,
    B1000000,
    B1152000,
    B1500000,
    B2000000,
    B2500000,
    B3000000,
    B3500000,
    B4000000,
}
Documentation

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
B50
B75
B110
B134
B150
B200
B300
B600
B1200
B1800
B2400
B4800
B9600
B19200
B38400
B57600
B115200
B230400
B460800
B500000
B576000
B921600
B1000000
B1152000
B1500000
B2000000
B2500000
B3000000
B3500000
B4000000

Trait Implementations

impl Clone for BaudRate
fn clone(&Self) -> BaudRate
impl Copy for BaudRate
impl Debug for BaudRate
fn fmt(&Self, f: &mut $crate::fmt::Formatter<'_>) -> $crate::fmt::Result
impl Eq for BaudRate
impl Hash for BaudRate
fn hash<__H: $crate::hash::Hasher>(&Self, state: &mut __H) -> ()
impl Ord for BaudRate
fn cmp(&Self, other: &BaudRate) -> $crate::cmp::Ordering
impl PartialEq<BaudRate> for BaudRate
fn eq(&Self, other: &BaudRate) -> bool
impl TryFrom<u32> for BaudRate
type Error = Errno
fn try_from(x: libc::speed_t) -> $crate::Result<Self>

Auto Trait Implementations

impl Send for BaudRate
impl Sync for BaudRate
impl Unpin for BaudRate
impl UnwindSafe for BaudRate

Blanket Implementations

impl<T> Any for T
where
    T: 'static + ?Sized,
fn type_id(&Self) -> TypeId
impl<T> Borrow<T> for T
where
    T: ?Sized,
fn borrow(&Self) -> &T
impl<T> BorrowMut<T> for T
where
    T: ?Sized,
fn borrow_mut(&mut Self) -> &mut T
impl<T> From<T> for T
fn from(t: T) -> T

Returns the argument unchanged.

impl<T, U> Into<U> for T
where
    U: From<T>,
fn into(Self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

impl<T> ToOwned for T
where
    T: Clone,
type Owned = T
fn to_owned(&Self) -> T
fn clone_into(&Self, target: &mut T)
impl<T, U> TryFrom<U> for T
where
    U: Into<T>,
type Error = Infallible
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
impl<T, U> TryInto<U> for T
where
    U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
fn try_into(Self) -> Result<U, <U as TryFrom<T>>::Error>