Struct multiboot2_header::Builder
source · pub struct Builder { /* private fields */ }Expand description
Builder for a Multiboot2 header information.
Implementations§
source§impl Builder
impl Builder
sourcepub const fn new(arch: HeaderTagISA) -> Self
pub const fn new(arch: HeaderTagISA) -> Self
Set the RelocatableHeaderTag tag.
sourcepub fn information_request_tag(
self,
information_request_tag: Box<InformationRequestHeaderTag>,
) -> Self
pub fn information_request_tag( self, information_request_tag: Box<InformationRequestHeaderTag>, ) -> Self
Set the InformationRequestHeaderTag tag.
sourcepub const fn address_tag(self, address_tag: AddressHeaderTag) -> Self
pub const fn address_tag(self, address_tag: AddressHeaderTag) -> Self
Set the AddressHeaderTag tag.
sourcepub const fn entry_tag(self, entry_tag: EntryAddressHeaderTag) -> Self
pub const fn entry_tag(self, entry_tag: EntryAddressHeaderTag) -> Self
Set the EntryAddressHeaderTag tag.
sourcepub const fn console_tag(self, console_tag: ConsoleHeaderTag) -> Self
pub const fn console_tag(self, console_tag: ConsoleHeaderTag) -> Self
Set the ConsoleHeaderTag tag.
sourcepub const fn framebuffer_tag(
self,
framebuffer_tag: FramebufferHeaderTag,
) -> Self
pub const fn framebuffer_tag( self, framebuffer_tag: FramebufferHeaderTag, ) -> Self
Set the FramebufferHeaderTag tag.
sourcepub const fn module_align_tag(
self,
module_align_tag: ModuleAlignHeaderTag,
) -> Self
pub const fn module_align_tag( self, module_align_tag: ModuleAlignHeaderTag, ) -> Self
Set the ModuleAlignHeaderTag tag.
sourcepub const fn efi_bs_tag(self, efi_bs_tag: EfiBootServiceHeaderTag) -> Self
pub const fn efi_bs_tag(self, efi_bs_tag: EfiBootServiceHeaderTag) -> Self
Set the EfiBootServiceHeaderTag tag.
sourcepub const fn efi_32_tag(self, efi_32_tag: EntryEfi32HeaderTag) -> Self
pub const fn efi_32_tag(self, efi_32_tag: EntryEfi32HeaderTag) -> Self
Set the EntryEfi32HeaderTag tag.
sourcepub const fn efi_64_tag(self, efi_64_tag: EntryEfi64HeaderTag) -> Self
pub const fn efi_64_tag(self, efi_64_tag: EntryEfi64HeaderTag) -> Self
Set the EntryEfi64HeaderTag tag.
sourcepub const fn relocatable_tag(
self,
relocatable_tag: RelocatableHeaderTag,
) -> Self
pub const fn relocatable_tag( self, relocatable_tag: RelocatableHeaderTag, ) -> Self
Set the RelocatableHeaderTag tag.
sourcepub fn build(self) -> Box<DynSizedStructure<Multiboot2BasicHeader>>
pub fn build(self) -> Box<DynSizedStructure<Multiboot2BasicHeader>>
Returns properly aligned bytes on the heap representing a valid Multiboot2 header structure.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Builder
impl RefUnwindSafe for Builder
impl Send for Builder
impl Sync for Builder
impl Unpin for Builder
impl UnwindSafe for Builder
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more