pub struct SerialSection {
pub baud: u32,
pub data_bits: u8,
pub stop_bits: u8,
pub parity: String,
pub flow: String,
}Expand description
Serial-port settings.
Fields§
§baud: u32Baud rate in bits per second (e.g. 115_200).
data_bits: u8Number of data bits per frame (5..=8).
stop_bits: u8Number of stop bits (1 or 2).
parity: StringParity: none, even, odd, mark, or space.
flow: StringFlow control: none, hw (RTS/CTS), or sw (XON/XOFF).
Trait Implementations§
Source§impl Clone for SerialSection
impl Clone for SerialSection
Source§fn clone(&self) -> SerialSection
fn clone(&self) -> SerialSection
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SerialSection
impl Debug for SerialSection
Source§impl Default for SerialSection
impl Default for SerialSection
Source§impl<'de> Deserialize<'de> for SerialSectionwhere
SerialSection: Default,
impl<'de> Deserialize<'de> for SerialSectionwhere
SerialSection: Default,
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
Source§impl PartialEq for SerialSection
impl PartialEq for SerialSection
Source§impl Serialize for SerialSection
impl Serialize for SerialSection
impl Eq for SerialSection
impl StructuralPartialEq for SerialSection
Auto Trait Implementations§
impl Freeze for SerialSection
impl RefUnwindSafe for SerialSection
impl Send for SerialSection
impl Sync for SerialSection
impl Unpin for SerialSection
impl UnsafeUnpin for SerialSection
impl UnwindSafe for SerialSection
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<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.