Skip to main content

UartData

Trait UartData 

Source
pub trait UartData<'a>: Transmit<'a> + Receive<'a> { }
Expand description

Trait for sending and receiving on UART.

This includes transmitting data and receiving data.

Capsules can use this to require a UART device that can both send and receive but do not need the ability to configure the bus settings.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§

Source§

impl<'a, T: Transmit<'a> + Receive<'a>> UartData<'a> for T