pub struct Interrupt {
pub kind: InterruptKind,
pub insn: InstructionId,
pub size: usize,
pub args: Vec<Option<u64>>,
pub pc: Option<u64>,
}Expand description
A stop at a user p-code operation, with what the host needs to act on it.
Fields§
§kind: InterruptKind§insn: InstructionIdThe operation’s instruction: where Vm::resume files its result.
size: usizeThe width in bytes of the result the operation declares, or 0 when it produces nothing.
args: Vec<Option<u64>>The operation’s operands as read at the stop — after code for an
explicit interrupt. None where an operand is wider than 64 bits or
could not be read.
pc: Option<u64>The guest address of the instruction that lifted to the operation.
Trait Implementations§
impl Eq for Interrupt
impl StructuralPartialEq for Interrupt
Auto Trait Implementations§
impl Freeze for Interrupt
impl RefUnwindSafe for Interrupt
impl Send for Interrupt
impl Sync for Interrupt
impl Unpin for Interrupt
impl UnsafeUnpin for Interrupt
impl UnwindSafe for Interrupt
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