pub struct LineMode {
pub baud: u32,
pub data_bits: u8,
pub parity: Parity,
pub extended_stop: bool,
}
Expand description
Speed and other line protocol settings.
Fields§
§baud: u32
Bits per second (including non-data bits) of line protocol.
data_bits: u8
Number of data bits per word in line protocol.
parity: Parity
Parity setting for line protocol.
extended_stop: bool
Use 1.5 or 2 stop bits (depending on baud rate) if set. If clear, use 1 stop bit.
Trait Implementations§
impl Copy for LineMode
impl Eq for LineMode
impl StructuralPartialEq for LineMode
Auto Trait Implementations§
impl Freeze for LineMode
impl RefUnwindSafe for LineMode
impl Send for LineMode
impl Sync for LineMode
impl Unpin for LineMode
impl UnwindSafe for LineMode
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