Skip to main content

System

Trait System 

Source
pub trait System: Device {
    // Required methods
    fn shutdown(&self);
    fn idle_if<T>(&self, cond: T)
       where T: Fn() -> bool;
    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>(&self, cond: T)
where T: Fn() -> bool,

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

Implementors§