Enum riscy::StepResult
source · pub enum StepResult {
Ok,
Call,
Break,
DecodeError(DecodeError),
}
Expand description
A struct to indicate the result of calling .step() or its variants.
Most instructions return StepResult::Ok
, indicating that the next
instruction was successfully fetched, decoded, and executed.
A result of StepResult::Call is the result of an ecall instruction. Similarly, a result of StepResult::Break is the result of an ebreak instruction.
Variants§
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for StepResult
impl Send for StepResult
impl Sync for StepResult
impl Unpin for StepResult
impl UnwindSafe for StepResult
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