Struct systemd_boot_conf::SystemdBootConf[][src]

pub struct SystemdBootConf {
    pub efi_mount: Box<Path>,
    pub entries_path: Box<Path>,
    pub loader_path: Box<Path>,
    pub entries: Vec<Entry>,
    pub loader_conf: LoaderConf,
}

Fields

efi_mount: Box<Path>entries_path: Box<Path>loader_path: Box<Path>entries: Vec<Entry>loader_conf: LoaderConf

Implementations

pub fn current_entry(&self) -> Option<&Entry>

Find the boot entry which matches the current boot

Implementation

The current boot option is determined by a matching the entry’s initd and options to /proc/cmdline.

pub fn default_entry_exists(&self) -> DefaultState

Validate that the default entry exists.

Validates that an entry exists with this name.

Get the entry that corresponds to the given name.

Get a mutable entry that corresponds to the given name.

Attempt to re-read the loader configuration.

Attempt to load all of the available entries in the system.

Overwrite the conf file with stored values.

pub fn overwrite_entry_conf(&self, entry: &str) -> Result<(), Error>

Overwrite the entry conf for the given entry.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.