efivar 2.0.0

Rust crate for manipulating EFI variables using the OS interface.
Documentation
use super::efi::{Variable, VariableFlags};

/// Represents the capability of writing EFI variables
pub trait VarWriter {
    /// 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
    fn write(
        &mut self,
        var: &Variable,
        attributes: VariableFlags,
        value: &[u8],
    ) -> crate::Result<()>;

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