pub struct XenDeviceModel { /* private fields */ }Implementations§
Source§impl XenDeviceModel
impl XenDeviceModel
Sourcepub fn inject_event(
&self,
vcpu: VcpuId,
vector: XenX86ExceptionVector,
event_type: XenX86EventType,
error_code: u32,
instruction_length: u8,
extra: u64,
) -> Result<(), XenError>
pub fn inject_event( &self, vcpu: VcpuId, vector: XenX86ExceptionVector, event_type: XenX86EventType, error_code: u32, instruction_length: u8, extra: u64, ) -> Result<(), XenError>
This function injects an event into a vCPU to take effect the next time it resumes.
Set error_code to !0 to skip.
Set extra to type-specific extra data (%cr2 for #PF, pending_dbg
for #DB).
Trait Implementations§
Source§impl Clone for XenDeviceModel
impl Clone for XenDeviceModel
Source§fn clone(&self) -> XenDeviceModel
fn clone(&self) -> XenDeviceModel
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for XenDeviceModel
impl RefUnwindSafe for XenDeviceModel
impl !Send for XenDeviceModel
impl !Sync for XenDeviceModel
impl Unpin for XenDeviceModel
impl UnsafeUnpin for XenDeviceModel
impl UnwindSafe for XenDeviceModel
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