pub struct BootLoaderEntryFile {
pub lines: Vec<String>,
}
Fields§
§lines: Vec<String>
Implementations§
Source§impl BootLoaderEntryFile
impl BootLoaderEntryFile
pub fn new(content: &str) -> Self
pub fn get_values<'a>( &'a self, key: &'a str, ) -> impl Iterator<Item = &'a str> + 'a
pub fn get_value(&self, key: &str) -> Option<&str>
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.
Sourcepub fn adjust_cmdline(&mut self, composefs: Option<&str>, extra: &[&str])
pub fn adjust_cmdline(&mut self, composefs: Option<&str>, extra: &[&str])
Adjusts the kernel command-line arguments by adding a composefs= parameter (if appropriate) and adding additional arguments, as requested.
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