pub struct LineCoding {
pub baud_rate: u32,
pub data_bits: u8,
pub parity: Parity,
pub stop_bits: StopBits,
}Expand description
Serial line parameters.
Fields§
§baud_rate: u32Baud rate in bits per second.
data_bits: u8Data bits. Legal values are 5, 6, 7 and 8.
parity: ParityParity setting.
stop_bits: StopBitsStop bits.
Trait Implementations§
Source§impl Clone for LineCoding
impl Clone for LineCoding
Source§fn clone(&self) -> LineCoding
fn clone(&self) -> LineCoding
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 LineCoding
impl Debug for LineCoding
Source§impl Default for LineCoding
impl Default for LineCoding
Source§impl Format for LineCoding
impl Format for LineCoding
Source§impl PartialEq for LineCoding
impl PartialEq for LineCoding
impl Copy for LineCoding
impl Eq for LineCoding
impl StructuralPartialEq for LineCoding
Auto Trait Implementations§
impl Freeze for LineCoding
impl RefUnwindSafe for LineCoding
impl Send for LineCoding
impl Sync for LineCoding
impl Unpin for LineCoding
impl UnwindSafe for LineCoding
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