pub struct NvramServices { /* private fields */ }
Expand description
Implements Hyper-V specific nvram service interfaces, extensions, and
functionality, deferring to the underlying NvramSpecServices
object to
implement any UEFI spec mandated nvram service functionality.
Implementations§
Source§impl NvramServices
impl NvramServices
pub async fn new( nvram_storage: Box<dyn InspectableNvramStorage>, custom_vars: CustomVars, secure_boot_enabled: bool, vsm_config: Option<Box<dyn VsmConfig>>, is_restoring: bool, ) -> Result<NvramServices, NvramSetupError>
pub fn reset(&mut self)
Trait Implementations§
Source§impl SaveRestore for NvramServices
impl SaveRestore for NvramServices
Source§type SavedState = SavedState
type SavedState = SavedState
The concrete saved state type.
Source§fn restore(&mut self, state: Self::SavedState) -> Result<(), RestoreError>
fn restore(&mut self, state: Self::SavedState) -> Result<(), RestoreError>
Restores the object’s state.
Auto Trait Implementations§
impl Freeze for NvramServices
impl !RefUnwindSafe for NvramServices
impl Send for NvramServices
impl !Sync for NvramServices
impl Unpin for NvramServices
impl !UnwindSafe for NvramServices
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more