pub struct LineCoding {
pub baud_rate: u32,
pub stop_bits: u8,
pub parity: u8,
pub data_bits: u8,
}Expand description
Serial port line-coding parameters (7-byte CDC structure).
Fields§
§baud_rate: u32Data terminal rate in bits per second.
stop_bits: u8Stop bits: 0 = 1 bit, 1 = 1.5 bits, 2 = 2 bits.
parity: u8Parity: 0 = None, 1 = Odd, 2 = Even, 3 = Mark, 4 = Space.
data_bits: u8Data bits: 5, 6, 7, 8, or 16.
Trait Implementations§
Source§impl Clone for LineCoding
impl Clone for LineCoding
impl Copy for LineCoding
Source§impl Debug for LineCoding
impl Debug for LineCoding
Source§impl Default for LineCoding
impl Default for LineCoding
Auto Trait Implementations§
impl Forget for LineCoding
impl Freeze for LineCoding
impl Move for LineCoding
impl RefUnwindSafe for LineCoding
impl Send for LineCoding
impl Sync for LineCoding
impl Unpin for LineCoding
impl UnsafeUnpin 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