pub fn set_variable<T: UefiVariable + 'static>(
name: &CStr16,
vendor: Option<VariableVendor>,
attrs: Option<VariableAttributes>,
num: Option<T>,
) -> BootResult<()>
Expand description
Sets a UEFI variable to a UefiVariable
given the name.
If None is specified for the vendor, then the variable will be searched for in a custom GUID space, not the global variables vendor space. In other words, unless you are storing your own variables, it may not be what you expect.
This custom namespace is accessible at GUID 23600d08-561e-4e68-a024-1d7d6e04ee4e
.
Passing None for num will result in the variable being deleted.
ยงErrors
May return an Error
for many reasons, see runtime::set_variable