Skip to main content

PollingUart

Trait PollingUart 

Source
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§

Source

fn poll_status(&mut self) -> PollingEvent

Source

fn write_byte(&mut self, byte: u8)

Source

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".

Implementors§