pub enum DataBits {
Bits5,
Bits6,
Bits7,
Bits8,
Bits9LE,
Bits9HE,
}
Expand description
The number of data bits in each character frame
Variants§
Bits5
5 bit data frame
Bits6
6 bit data frame
Bits7
7 bit data frame
Bits8
8 bit data frame
Bits9LE
9 bit data frame, little-endian (low byte sent first)
Bits9HE
9 bit data frame, big-endian (high byte sent first)
Trait Implementations§
source§impl PartialEq for DataBits
impl PartialEq for DataBits
source§impl Persist for DataBits
impl Persist for DataBits
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 DataBits
impl Eq for DataBits
impl StructuralPartialEq for DataBits
Auto Trait Implementations§
impl Freeze for DataBits
impl RefUnwindSafe for DataBits
impl Send for DataBits
impl Sync for DataBits
impl Unpin 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