pub struct VmiEvent<Arch>where
Arch: Architecture + ?Sized,{ /* private fields */ }
Expand description
An event that occurred during VMI.
Implementations§
Source§impl<Arch> VmiEvent<Arch>where
Arch: Architecture + ?Sized,
impl<Arch> VmiEvent<Arch>where
Arch: Architecture + ?Sized,
Sourcepub fn new(
vcpu_id: VcpuId,
flags: VmiEventFlags,
view: Option<View>,
registers: Arch::Registers,
reason: Arch::EventReason,
) -> Self
pub fn new( vcpu_id: VcpuId, flags: VmiEventFlags, view: Option<View>, registers: Arch::Registers, reason: Arch::EventReason, ) -> Self
Creates a new VMI event.
Sourcepub fn flags(&self) -> VmiEventFlags
pub fn flags(&self) -> VmiEventFlags
Returns flags associated with the event.
Sourcepub fn registers(&self) -> &Arch::Registers
pub fn registers(&self) -> &Arch::Registers
Returns a reference to the CPU registers at the time of the event.
Sourcepub fn reason(&self) -> &Arch::EventReason
pub fn reason(&self) -> &Arch::EventReason
Returns a reference to the reason for the event.
Trait Implementations§
impl<Arch> Copy for VmiEvent<Arch>
Auto Trait Implementations§
impl<Arch> Freeze for VmiEvent<Arch>where
<Arch as Architecture>::Registers: Freeze,
<Arch as Architecture>::EventReason: Freeze,
Arch: ?Sized,
impl<Arch> RefUnwindSafe for VmiEvent<Arch>where
<Arch as Architecture>::Registers: RefUnwindSafe,
<Arch as Architecture>::EventReason: RefUnwindSafe,
Arch: ?Sized,
impl<Arch> Send for VmiEvent<Arch>where
<Arch as Architecture>::Registers: Send,
<Arch as Architecture>::EventReason: Send,
Arch: ?Sized,
impl<Arch> Sync for VmiEvent<Arch>where
<Arch as Architecture>::Registers: Sync,
<Arch as Architecture>::EventReason: Sync,
Arch: ?Sized,
impl<Arch> Unpin for VmiEvent<Arch>where
<Arch as Architecture>::Registers: Unpin,
<Arch as Architecture>::EventReason: Unpin,
Arch: ?Sized,
impl<Arch> UnwindSafe for VmiEvent<Arch>where
<Arch as Architecture>::Registers: UnwindSafe,
<Arch as Architecture>::EventReason: UnwindSafe,
Arch: ?Sized,
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