Struct multiboot::header::Header[][src]

pub struct Header {
    pub header_start: u32,
    // some fields omitted
}

Multiboot struct bootloaders mainly interact with

Fields

header_start: u32

the index at which the header starts

Implementations

impl Header[src]

pub fn from_slice(buffer: &[u8]) -> Option<Self>[src]

Get the header by parsing it from a slice.

The needed portion of the slice is copied.

pub fn wants_modules_page_aligned(&self) -> bool[src]

If true, then the modules have to be page aligned.

pub fn wants_memory_information(&self) -> bool[src]

If true, memory information must be passed.

pub fn has_video_mode(&self) -> bool[src]

If true, then the mode_type, width, height and depth fields are valid and video information has to be passed.

pub fn has_multiboot_addresses(&self) -> bool[src]

If true, then the header_addr, load_addr, load_end_addr, bss_end_addr and entry_addr fields are valid and must be used to load the kernel.

pub fn get_addresses(&self) -> Option<MultibootAddresses>[src]

Get the load addresses specified in the Multiboot header.

If this function returns None the binary has to be loaded as an ELF instead.

pub fn get_preferred_video_mode(&self) -> Option<MultibootVideoMode>[src]

Get the preferred video mode specified in the Multiboot header.

Trait Implementations

impl Clone for Header[src]

impl Copy for Header[src]

impl Debug for Header[src]

Auto Trait Implementations

impl Send for Header

impl Sync for Header

impl Unpin for Header

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.