pub trait PollingUart {
// Required methods
fn poll_status(&mut self) -> PollingEvent;
fn write_byte(&mut self, byte: u8);
fn read_byte(
&mut self,
status: PollingEvent,
) -> Option<Result<u8, TransferError>>;
}Expand description
Allocation-free polling interface used by early consoles.
Required Methods§
fn poll_status(&mut self) -> PollingEvent
fn write_byte(&mut self, byte: u8)
fn read_byte( &mut self, status: PollingEvent, ) -> Option<Result<u8, TransferError>>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".