pub struct UartConfiguration {
pub name: String,
pub baudrate: Option<u32>,
pub parity: Option<UartParity>,
pub stopbits: Option<UartStopBits>,
pub alias_of: Option<String>,
}
Expand description
Configuration of a particular UART port.
Fields§
§name: String
The user-visible name of the UART.
baudrate: Option<u32>
Data communication rate in bits/second.
parity: Option<UartParity>
Parity configuration for UART communication.
stopbits: Option<UartStopBits>
Stop bits configuration for UART communication.
alias_of: Option<String>
Name of the UART as defined by the transport.
Trait Implementations§
Source§impl Clone for UartConfiguration
impl Clone for UartConfiguration
Source§fn clone(&self) -> UartConfiguration
fn clone(&self) -> UartConfiguration
Returns a copy 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 UartConfiguration
impl Debug for UartConfiguration
Source§impl<'de> Deserialize<'de> for UartConfiguration
impl<'de> Deserialize<'de> for UartConfiguration
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for UartConfiguration
impl RefUnwindSafe for UartConfiguration
impl Send for UartConfiguration
impl Sync for UartConfiguration
impl Unpin for UartConfiguration
impl UnwindSafe for UartConfiguration
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