pub struct VmiPauseGuard<'a, Driver>where
Driver: VmiDriver,{ /* private fields */ }
Expand description
A guard that pauses the virtual machine on creation and resumes it on drop.
Implementations§
Source§impl<'a, Driver> VmiPauseGuard<'a, Driver>where
Driver: VmiDriver,
impl<'a, Driver> VmiPauseGuard<'a, Driver>where
Driver: VmiDriver,
Sourcepub fn new(driver: &'a Driver) -> Result<Self, VmiError>
pub fn new(driver: &'a Driver) -> Result<Self, VmiError>
Creates a new pause guard.
Trait Implementations§
Auto Trait Implementations§
impl<'a, Driver> Freeze for VmiPauseGuard<'a, Driver>
impl<'a, Driver> RefUnwindSafe for VmiPauseGuard<'a, Driver>where
Driver: RefUnwindSafe,
impl<'a, Driver> Send for VmiPauseGuard<'a, Driver>where
Driver: Sync,
impl<'a, Driver> Sync for VmiPauseGuard<'a, Driver>where
Driver: Sync,
impl<'a, Driver> Unpin for VmiPauseGuard<'a, Driver>
impl<'a, Driver> UnwindSafe for VmiPauseGuard<'a, Driver>where
Driver: RefUnwindSafe,
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