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 tauri_plugin_serialplugin::state::DataBits;
let data_bits = DataBits::Eight; // Most common setting
Variants§
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§
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 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<'de, D, R> CommandArg<'de, R> for Dwhere
D: Deserialize<'de>,
R: Runtime,
impl<'de, D, R> CommandArg<'de, R> for Dwhere
D: Deserialize<'de>,
R: Runtime,
Source§fn from_command(command: CommandItem<'de, R>) -> Result<D, InvokeError>
fn from_command(command: CommandItem<'de, R>) -> Result<D, InvokeError>
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.