Skip to main content

SplitUart

Trait SplitUart 

Source
pub trait SplitUart: Sized {
    type Port: UartPort;
    type Irq: UartIrq;

    // Required methods
    fn runtime_info(&self) -> UartInfo;
    fn split(self) -> UartParts<Self::Port, Self::Irq>;
}
Expand description

Converts a concrete UART into disjoint runtime endpoints.

Required Associated Types§

Required Methods§

Source

fn runtime_info(&self) -> UartInfo

Source

fn split(self) -> UartParts<Self::Port, Self::Irq>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§