[][src]Struct usbd_serial::LineCoding

pub struct LineCoding { /* fields omitted */ }

Line coding parameters

This is provided by the host for specifying the standard UART parameters such as baud rate. Can be ignored if you don't plan to interface with a physical UART.

Implementations

impl LineCoding[src]

pub fn stop_bits(&self) -> StopBits[src]

Gets the number of stop bits for UART communication.

pub fn data_bits(&self) -> u8[src]

Gets the number of data bits for UART communication.

pub fn parity_type(&self) -> ParityType[src]

Gets the parity type for UART communication.

pub fn data_rate(&self) -> u32[src]

Gets the data rate in bits per second for UART communication.

Trait Implementations

impl Default for LineCoding[src]

Auto Trait Implementations

impl Send for LineCoding

impl Sync for LineCoding

impl Unpin for LineCoding

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.