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§
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)
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.