pub struct BootLoaderEntryFile {
pub lines: Vec<String>,
}Expand description
Represents a parsed Boot Loader Specification entry file.
Contains the lines of a BLS .conf file and provides methods to query and modify entries like kernel paths, initrd files, and command-line options.
Fields§
§lines: Vec<String>Lines from the bootloader entry configuration file
Implementations§
Source§impl BootLoaderEntryFile
impl BootLoaderEntryFile
Sourcepub fn get_values<'a>(
&'a self,
key: &'a str,
) -> impl Iterator<Item = &'a str> + 'a
pub fn get_values<'a>( &'a self, key: &'a str, ) -> impl Iterator<Item = &'a str> + 'a
Sourcepub fn add_cmdline(&mut self, arg: &str)
pub fn add_cmdline(&mut self, arg: &str)
Adds a kernel command-line argument, possibly replacing a previous value.
arg can be something like “composefs=xyz” but it can also be something like “rw”. In either case, if the argument already existed, it will be replaced.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for BootLoaderEntryFile
impl RefUnwindSafe for BootLoaderEntryFile
impl Send for BootLoaderEntryFile
impl Sync for BootLoaderEntryFile
impl Unpin for BootLoaderEntryFile
impl UnwindSafe for BootLoaderEntryFile
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