Enum serial::BaudRate
[−]
[src]
pub enum BaudRate { Baud110, Baud300, Baud600, Baud1200, Baud2400, Baud4800, Baud9600, Baud19200, Baud38400, Baud57600, Baud115200, BaudOther(usize), }
Serial port baud rates.
Variants
Baud110
110 baud.
Baud300
300 baud.
Baud600
600 baud.
Baud1200
1200 baud.
Baud2400
2400 baud.
Baud4800
4800 baud.
Baud9600
9600 baud.
Baud19200
19,200 baud.
Baud38400
38,400 baud.
Baud57600
57,600 baud.
Baud115200
115,200 baud.
BaudOther(usize)
Non-standard baud rates.
BaudOther
can be used to set arbitrary baud rates by setting its member to be the desired
baud rate.
serial::BaudOther(4_000_000); // 4,000,000 baud
Non-standard baud rates may not be supported by all hardware.
Trait Implementations
impl Eq for BaudRate
[src]
impl PartialEq for BaudRate
[src]
fn eq(&self, __arg_0: &BaudRate) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &BaudRate) -> bool
This method tests for !=
.
impl Clone for BaudRate
[src]
fn clone(&self) -> BaudRate
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more