pub struct BootloaderFiles {
pub bios_files: Vec<FileEntry>,
pub uefi_files: Vec<FileEntry>,
pub system_files: Vec<FileEntry>,
}Expand description
Files prepared by the bootloader.
Fields§
§bios_files: Vec<FileEntry>Files for BIOS boot (e.g., boot sector, stage files).
uefi_files: Vec<FileEntry>Files for UEFI boot (e.g., EFI executables).
system_files: Vec<FileEntry>Files that go in the root/system area of the image.
Implementations§
Source§impl BootloaderFiles
impl BootloaderFiles
Sourcepub fn add_bios_file(self, source: PathBuf, dest: PathBuf) -> Self
pub fn add_bios_file(self, source: PathBuf, dest: PathBuf) -> Self
Add a BIOS file.
Sourcepub fn add_uefi_file(self, source: PathBuf, dest: PathBuf) -> Self
pub fn add_uefi_file(self, source: PathBuf, dest: PathBuf) -> Self
Add a UEFI file.
Sourcepub fn add_system_file(self, source: PathBuf, dest: PathBuf) -> Self
pub fn add_system_file(self, source: PathBuf, dest: PathBuf) -> Self
Add a system file.
Trait Implementations§
Source§impl Debug for BootloaderFiles
impl Debug for BootloaderFiles
Source§impl Default for BootloaderFiles
impl Default for BootloaderFiles
Source§fn default() -> BootloaderFiles
fn default() -> BootloaderFiles
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for BootloaderFiles
impl RefUnwindSafe for BootloaderFiles
impl Send for BootloaderFiles
impl Sync for BootloaderFiles
impl Unpin for BootloaderFiles
impl UnsafeUnpin for BootloaderFiles
impl UnwindSafe for BootloaderFiles
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