pub struct VmiEventResponse<Arch>where
Arch: Architecture + ?Sized,{
pub flags: VmiEventResponseFlags,
pub view: Option<View>,
pub registers: Option<<Arch::Registers as Registers>::GpRegisters>,
}Expand description
A response to a VMI event.
Fields§
§flags: VmiEventResponseFlagsFlags associated with the response.
view: Option<View>The view to set for the VCPU.
registers: Option<<Arch::Registers as Registers>::GpRegisters>The VCPU registers to set.
Implementations§
Source§impl<Arch> VmiEventResponse<Arch>where
Arch: Architecture + ?Sized,
impl<Arch> VmiEventResponse<Arch>where
Arch: Architecture + ?Sized,
Sourcepub fn reinject_interrupt() -> Self
pub fn reinject_interrupt() -> Self
Creates a response to reinject an interrupt.
Sourcepub fn toggle_singlestep() -> Self
pub fn toggle_singlestep() -> Self
Creates a response to toggle single-step mode.
Sourcepub fn toggle_fast_singlestep() -> Self
pub fn toggle_fast_singlestep() -> Self
Creates a response to toggle fast single-step mode.
Sourcepub fn set_registers(
registers: <Arch::Registers as Registers>::GpRegisters,
) -> Self
pub fn set_registers( registers: <Arch::Registers as Registers>::GpRegisters, ) -> Self
Creates a response to set specific CPU registers.
Sourcepub fn and_reinject_interrupt(self) -> Self
pub fn and_reinject_interrupt(self) -> Self
Adds the reinject interrupt flag to the response.
Sourcepub fn and_toggle_singlestep(self) -> Self
pub fn and_toggle_singlestep(self) -> Self
Adds the toggle single-step flag to the response.
Sourcepub fn and_toggle_fast_singlestep(self) -> Self
pub fn and_toggle_fast_singlestep(self) -> Self
Adds the toggle fast single-step flag to the response.
Sourcepub fn and_emulate(self) -> Self
pub fn and_emulate(self) -> Self
Adds the emulate flag to the response.
Sourcepub fn and_set_view(self, view: View) -> Self
pub fn and_set_view(self, view: View) -> Self
Sets a specific view for the response.
Sourcepub fn and_set_registers(
self,
registers: <Arch::Registers as Registers>::GpRegisters,
) -> Self
pub fn and_set_registers( self, registers: <Arch::Registers as Registers>::GpRegisters, ) -> Self
Sets specific CPU registers for the response.
Trait Implementations§
Source§impl<Arch> Debug for VmiEventResponse<Arch>
impl<Arch> Debug for VmiEventResponse<Arch>
Source§impl<Arch> Default for VmiEventResponse<Arch>where
Arch: Architecture + ?Sized,
impl<Arch> Default for VmiEventResponse<Arch>where
Arch: Architecture + ?Sized,
Auto Trait Implementations§
impl<Arch> Freeze for VmiEventResponse<Arch>
impl<Arch> RefUnwindSafe for VmiEventResponse<Arch>
impl<Arch> Send for VmiEventResponse<Arch>
impl<Arch> Sync for VmiEventResponse<Arch>
impl<Arch> Unpin for VmiEventResponse<Arch>
impl<Arch> UnwindSafe for VmiEventResponse<Arch>
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