pub trait Platform {
// Required methods
unsafe fn shutdown();
unsafe fn wait_for_interrupt();
unsafe fn current_ticks() -> u64;
unsafe fn tick_hz() -> u64;
unsafe fn debug_write_char(ch: u8);
fn print_system_info();
fn irqs_enable();
fn irqs_disable();
fn cpu_id() -> u64;
fn cpu_id_display() -> String;
}
Required Methods§
unsafe fn shutdown()
unsafe fn wait_for_interrupt()
unsafe fn current_ticks() -> u64
unsafe fn tick_hz() -> u64
unsafe fn debug_write_char(ch: u8)
fn print_system_info()
fn irqs_enable()
fn irqs_disable()
fn cpu_id() -> u64
fn cpu_id_display() -> String
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.