Skip to main content

Application

Trait Application 

Source
pub trait Application {
    // Required methods
    fn kernel(&self) -> &Kernel;
    fn boot(&mut self) -> Result<(), KernelError>;
    fn shutdown(&mut self) -> Result<(), KernelError>;
}
Expand description

Host that owns a Kernel.

Required Methods§

Source

fn kernel(&self) -> &Kernel

Shared kernel access.

Source

fn boot(&mut self) -> Result<(), KernelError>

Boots the kernel (compile then boot).

§Errors

Propagates Kernel::boot errors.

Source

fn shutdown(&mut self) -> Result<(), KernelError>

Shuts the kernel down.

§Errors

Propagates Kernel::shutdown errors.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§