[−][src]Struct usbd_serial::LineCoding
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
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,