Function ensure_efi_variable

Source
pub fn ensure_efi_variable<F>(
    runtime_services: &RuntimeServices,
    name: &CStr16,
    vendor: &VariableVendor,
    attributes: VariableAttributes,
    get_fallback_value: F,
) -> Result
where F: FnOnce() -> Result<Vec<u8>>,
Expand description

Ensures that an UEFI variable is set or set it with a fallback value computed in a lazy way.