Struct multiboot::header::Header [−][src]
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]
fn clone(&self) -> Header
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for Header
[src]
impl Debug for Header
[src]
Auto Trait Implementations
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,