pub enum BaudRate {
Show 14 variants
Baud300,
Baud600,
Baud1200,
Baud2400,
Baud4800,
Baud9600,
Baud14400,
Baud19200,
Baud28800,
Baud38400,
Baud57600,
Baud76800,
Baud115200,
Auto,
}
Expand description
Possible baud rates we can configure a serial port clock to use.
Variants§
Baud300
300 baud
Baud600
600 baud
Baud1200
1200 baud
Baud2400
2400 baud
Baud4800
4800 baud
Baud9600
9600 baud
Baud14400
14400 baud
Baud19200
19200 baud
Baud28800
28800 baud
Baud38400
38400 baud
Baud57600
57600 baud
Baud76800
Baud115200
Auto
Automatic baud rate detection. See the AVR manual, but don’t expect me to test whether or not this actually works ;-)
Implementations§
Trait Implementations§
source§impl PartialEq for BaudRate
impl PartialEq for BaudRate
source§impl Persist for BaudRate
impl Persist for BaudRate
source§fn load_from<R: Read>(reader: &mut R) -> PersistenceResult<Self>where
Self: Sized,
fn load_from<R: Read>(reader: &mut R) -> PersistenceResult<Self>where
Self: Sized,
Load an instance of this Enum from the given reader
source§fn save_to<W: Write>(&self, writer: &mut W) -> PersistenceResult<()>
fn save_to<W: Write>(&self, writer: &mut W) -> PersistenceResult<()>
Save an instance of this Enum to the given writer.
source§fn load_with<R: Read>(reader: R) -> PersistenceResult<Self>
fn load_with<R: Read>(reader: R) -> PersistenceResult<Self>
Take the given reader and use it to load an instance of this type.
impl Copy for BaudRate
impl Eq for BaudRate
impl StructuralPartialEq for BaudRate
Auto Trait Implementations§
impl Freeze for BaudRate
impl RefUnwindSafe for BaudRate
impl Send for BaudRate
impl Sync for BaudRate
impl Unpin for BaudRate
impl UnwindSafe for BaudRate
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more