pub enum InsnAction {
Handled(Option<u128>),
Unhandled,
Stop,
}Expand description
What an instruction hook did about the user op it was called for.
Variants§
Handled(Option<u128>)
The op’s effect has been applied; this is its result, if it declares one. The machine resumes past it.
Unhandled
Not this hook’s op: the next hook is asked, and if none handles it the interrupt is returned to the caller.
Stop
Leave the machine stopped at the op and return from the run.
Trait Implementations§
Source§impl Clone for InsnAction
impl Clone for InsnAction
Source§fn clone(&self) -> InsnAction
fn clone(&self) -> InsnAction
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for InsnAction
Source§impl Debug for InsnAction
impl Debug for InsnAction
impl Eq for InsnAction
Source§impl PartialEq for InsnAction
impl PartialEq for InsnAction
impl StructuralPartialEq for InsnAction
Auto Trait Implementations§
impl Freeze for InsnAction
impl RefUnwindSafe for InsnAction
impl Send for InsnAction
impl Sync for InsnAction
impl Unpin for InsnAction
impl UnsafeUnpin for InsnAction
impl UnwindSafe for InsnAction
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