Registers

Trait Registers 

Source
pub trait Registers: Clone + 'static {
    // Required methods
    fn can_put(&self) -> bool;
    fn put(&self, c: u8) -> Result<(), SerialError>;
    fn can_get(&self) -> bool;
    fn get(&self) -> Result<u8, SerialError>;
    fn get_irq_event(&self) -> IrqEvent;
    fn clean_irq_event(&self, event: IrqEvent);
}

Required Methods§

Source

fn can_put(&self) -> bool

Source

fn put(&self, c: u8) -> Result<(), SerialError>

Source

fn can_get(&self) -> bool

Source

fn get(&self) -> Result<u8, SerialError>

Source

fn get_irq_event(&self) -> IrqEvent

Source

fn clean_irq_event(&self, event: IrqEvent)

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§