pub enum Flow {
Next,
Jump(Target),
Branch(Target),
Call(Target),
Return,
Trap {
conditional: bool,
},
SystemCall,
ExceptionReturn,
Halt,
}Expand description
How an instruction transfers control.
Variants§
Next
Execution continues with the next instruction.
Jump(Target)
An unconditional jump.
Branch(Target)
A conditional jump: to the target, or on with the next instruction.
Call(Target)
A call; the callee normally returns to the next instruction.
Return
A return from a call.
Trap
A software interrupt or deliberate exception (INT3, UD2, BRK);
conditional ones (INTO) continue with the next instruction when
they do not trap.
SystemCall
An entry to the operating system or hypervisor (SYSCALL, SVC),
which normally returns to the next instruction.
ExceptionReturn
A return from an interrupt, exception or system call (IRET,
SYSRET, ERET).
Halt
A halt until the next interrupt (HLT).
Implementations§
Trait Implementations§
impl Copy for Flow
impl Eq for Flow
impl StructuralPartialEq for Flow
Auto Trait Implementations§
impl Forget for Flow
impl Freeze for Flow
impl Move for Flow
impl RefUnwindSafe for Flow
impl Send for Flow
impl Sync for Flow
impl Unpin for Flow
impl UnsafeUnpin for Flow
impl UnwindSafe for Flow
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