pub trait UartPeriphConfig:
UartPeriph
+ GetClock
+ Enable
+ Reset
+ Steal {
// Required methods
fn config(&mut self, config: Config);
fn enable_comm(&mut self, tx: bool, rx: bool);
fn set_stop_bits(&mut self, bits: StopBits);
fn is_tx_empty(&self) -> bool;
fn is_rx_not_empty(&self) -> bool;
}Required Methods§
fn config(&mut self, config: Config)
fn enable_comm(&mut self, tx: bool, rx: bool)
fn set_stop_bits(&mut self, bits: StopBits)
fn is_tx_empty(&self) -> bool
fn is_rx_not_empty(&self) -> bool
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.