Skip to main content

VarWriter

Trait VarWriter 

Source
pub trait VarWriter {
    // Required methods
    fn write(
        &mut self,
        var: &Variable,
        attributes: VariableFlags,
        value: &[u8],
    ) -> Result<()>;
    fn delete(&mut self, var: &Variable) -> Result<()>;
}
Expand description

Represents the capability of writing EFI variables

Required Methods§

Source

fn write( &mut self, var: &Variable, attributes: VariableFlags, value: &[u8], ) -> Result<()>

Write the new value of the given EFI variable

Note that some implementations will ignore attribute changes.

§Arguments
  • var: the variable to write
  • attributes: EFI variable attributes
  • value: EFI variable contents
Source

fn delete(&mut self, var: &Variable) -> Result<()>

Implementors§