System

Trait System 

Source
pub trait System: Device {
    // Required methods
    fn shutdown(&self);
    fn idle_if<T: Fn() -> bool>(&self, cond: T);
    fn wait_forever(&self) -> !;
    fn disable_interruptions(&self);
    fn enable_interruptions(&self);
}
Expand description

§Initialization

The system is expected to initialize:

  • the CPU
  • the memory allocator

Required Methods§

Source

fn shutdown(&self)

Called to shutdown the system

Source

fn idle_if<T: Fn() -> bool>(&self, cond: T)

Source

fn wait_forever(&self) -> !

Source

fn disable_interruptions(&self)

Source

fn enable_interruptions(&self)

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§