pub enum DataBits {
Five,
Six,
Seven,
Eight,
}Expand description
Number of bits per character for serial communication
This enum defines the number of data bits used in each character transmitted over the serial port. Most modern applications use 8 data bits.
§Example
use serialplugin_core::state::DataBits;
let data_bits = DataBits::Eight; // Most common settingVariants§
Five
5 bits per character (rarely used)
Six
6 bits per character (rarely used)
Seven
7 bits per character (used with parity)
Eight
8 bits per character (most common)
Implementations§
Trait Implementations§
impl Copy for DataBits
Source§impl<'de> Deserialize<'de> for DataBits
impl<'de> Deserialize<'de> for DataBits
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for DataBits
impl StructuralPartialEq for DataBits
Auto Trait Implementations§
impl Forget for DataBits
impl Freeze for DataBits
impl RefUnwindSafe for DataBits
impl Send for DataBits
impl Sync for DataBits
impl Unpin for DataBits
impl UnsafeUnpin for DataBits
impl UnwindSafe for DataBits
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