Trait hal_core::boot::BootInfo

source ·
pub trait BootInfo {
    type MemoryMap: Iterator<Item = Region>;
    type Writer: Write;
    type Framebuffer: Draw;

    // Required methods
    fn memory_map(&self) -> Self::MemoryMap;
    fn writer(&self) -> Self::Writer;
    fn framebuffer(&self) -> Option<Self::Framebuffer>;
    fn bootloader_name(&self) -> &str;
    fn init_paging(&self);

    // Provided methods
    fn bootloader_version(&self) -> Option<&str> { ... }
    fn subscriber(&self) -> Option<Dispatch> { ... }
}

Required Associated Types§

Required Methods§

source

fn memory_map(&self) -> Self::MemoryMap

Returns the boot info’s memory map.

source

fn writer(&self) -> Self::Writer

Returns a writer for printing early kernel diagnostics

source

fn framebuffer(&self) -> Option<Self::Framebuffer>

source

fn bootloader_name(&self) -> &str

source

fn init_paging(&self)

Provided Methods§

source

fn bootloader_version(&self) -> Option<&str>

source

fn subscriber(&self) -> Option<Dispatch>

Implementors§