Struct multiboot2::builder::InformationBuilder
source · pub struct InformationBuilder { /* private fields */ }
Expand description
Builder to construct a valid Multiboot2 information dynamically at runtime. The tags will appear in the order of their corresponding enumeration, except for the END tag.
Implementations§
source§impl InformationBuilder
impl InformationBuilder
pub const fn new() -> Self
sourcepub fn expected_len(&self) -> usize
pub fn expected_len(&self) -> usize
Returns the expected length of the boot information, when the
Self::build
-method gets called.
sourcepub fn build(self) -> BootInformationBytes
pub fn build(self) -> BootInformationBytes
Constructs the bytes for a valid Multiboot2 information with the given properties.
pub fn basic_memory_info_tag( &mut self, basic_memory_info_tag: BasicMemoryInfoTag )
pub fn bootloader_name_tag( &mut self, boot_loader_name_tag: BoxedDst<BootLoaderNameTag> )
pub fn command_line_tag(&mut self, command_line_tag: BoxedDst<CommandLineTag>)
pub fn efisdt32_tag(&mut self, efisdt32: EFISdt32Tag)
pub fn efisdt64_tag(&mut self, efisdt64: EFISdt64Tag)
pub fn efi_boot_services_not_exited_tag(&mut self)
pub fn efi_image_handle32(&mut self, efi_image_handle32: EFIImageHandle32Tag)
pub fn efi_image_handle64(&mut self, efi_image_handle64: EFIImageHandle64Tag)
pub fn efi_memory_map_tag( &mut self, efi_memory_map_tag: BoxedDst<EFIMemoryMapTag> )
pub fn elf_sections_tag(&mut self, elf_sections_tag: BoxedDst<ElfSectionsTag>)
pub fn framebuffer_tag(&mut self, framebuffer_tag: BoxedDst<FramebufferTag>)
pub fn image_load_addr(&mut self, image_load_addr: ImageLoadPhysAddrTag)
pub fn memory_map_tag(&mut self, memory_map_tag: BoxedDst<MemoryMapTag>)
pub fn add_module_tag(&mut self, module_tag: BoxedDst<ModuleTag>)
pub fn rsdp_v1_tag(&mut self, rsdp_v1_tag: RsdpV1Tag)
pub fn rsdp_v2_tag(&mut self, rsdp_v2_tag: RsdpV2Tag)
pub fn add_smbios_tag(&mut self, smbios_tag: BoxedDst<SmbiosTag>)
Trait Implementations§
source§impl Debug for InformationBuilder
impl Debug for InformationBuilder
source§impl PartialEq for InformationBuilder
impl PartialEq for InformationBuilder
source§fn eq(&self, other: &InformationBuilder) -> bool
fn eq(&self, other: &InformationBuilder) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for InformationBuilder
impl StructuralEq for InformationBuilder
impl StructuralPartialEq for InformationBuilder
Auto Trait Implementations§
impl RefUnwindSafe for InformationBuilder
impl !Send for InformationBuilder
impl !Sync for InformationBuilder
impl Unpin for InformationBuilder
impl UnwindSafe for InformationBuilder
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T, U> Into<U> for Twhere
U: From<T>,
impl<T, U> Into<U> for Twhere
U: From<T>,
source§impl<T> TagTrait for Twhere
T: Pointee<Metadata = ()>,
impl<T> TagTrait for Twhere
T: Pointee<Metadata = ()>,
source§fn dst_size(_: &Tag) -> <T as Pointee>::Metadata
fn dst_size(_: &Tag) -> <T as Pointee>::Metadata
Returns the amount of items in the dynamically sized portion of the
DST. Note that this is not the amount of bytes. So if the dynamically
sized portion is 16 bytes in size and each element is 4 bytes big, then
this function must return 4.
source§unsafe fn from_base_tag<'a>(tag: &Tag) -> &'a Self
unsafe fn from_base_tag<'a>(tag: &Tag) -> &'a Self
Creates a reference to a (dynamically sized) tag type in a safe way.
DST tags need to implement a proper
Self::dst_size
implementation. Read more