pub trait SplitUart: Sized {
type Control: UartPort;
type Irq: UartIrq;
type EmergencyTx: UartEmergencyTx;
// Required methods
fn runtime_info(&self) -> UartInfo;
fn split(self) -> SerialParts<Self::Control, Self::Irq, Self::EmergencyTx>;
}Expand description
Converts a concrete UART into disjoint runtime endpoints.
Required Associated Types§
Required Methods§
fn runtime_info(&self) -> UartInfo
fn split(self) -> SerialParts<Self::Control, Self::Irq, Self::EmergencyTx>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".