pub struct BootConfig {
pub timeout: i64,
pub default: Option<usize>,
pub drivers: bool,
pub driver_path: String,
pub editor: bool,
pub pxe: bool,
pub bg: Color,
pub fg: Color,
pub highlight_bg: Color,
pub highlight_fg: Color,
}
Expand description
The configuration file for the bootloader.
Fields§
§timeout: i64
The timeout for the bootloader before the default boot option is selected.
default: Option<usize>
The default boot option as the index of the entry.
drivers: bool
Whether loading drivers is enabled or not.
driver_path: String
The path to the drivers in the same filesystem as the bootloader.
editor: bool
Allows for the editor to be enabled, if there is one.
pxe: bool
Allows for the basic PXE/TFTP loader to be enabled.
bg: Color
Allows adjusting the background of the UI.
fg: Color
Allows adjusting the foreground of the UI.
highlight_bg: Color
Allows adjusting the background of the highlighter.
highlight_fg: Color
Allows adjusting the foreground of the highlighter.
Implementations§
Source§impl BootConfig
impl BootConfig
Sourcepub fn get_boot_config(content: &[u8], bytes: Option<usize>) -> Self
pub fn get_boot_config(content: &[u8], bytes: Option<usize>) -> Self
Parses the contents of a BootConfig
format string.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for BootConfig
impl RefUnwindSafe for BootConfig
impl Send for BootConfig
impl Sync for BootConfig
impl Unpin for BootConfig
impl UnwindSafe for BootConfig
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