pub struct LineCoding {
pub baud_rate: u32,
pub stop_bits: u8,
pub parity: u8,
pub data_bits: u8,
}Expand description
USB line coding (serial parameters).
Fields§
§baud_rate: u32Baud rate in bits per second.
stop_bits: u8Stop bits: 0=1, 1=1.5, 2=2.
parity: u8Parity: 0=None, 1=Odd, 2=Even.
data_bits: u8Data bits (5, 6, 7, 8).
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
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