Enum rune::runtime::ExecutionState
source · #[non_exhaustive]pub enum ExecutionState {
Initial,
Resumed,
}
Expand description
The state of an execution. We keep track of this because it’s important to correctly interact with functions that yield (like generators and streams) by initially just calling the function, then by providing a value pushed onto the stack.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Initial
The initial state of an execution.
Resumed
The resumed state of an execution. This expects a value to be pushed onto the virtual machine before it is continued.
Trait Implementations§
source§impl Clone for ExecutionState
impl Clone for ExecutionState
source§fn clone(&self) -> ExecutionState
fn clone(&self) -> ExecutionState
Returns a copy 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 moresource§impl Debug for ExecutionState
impl Debug for ExecutionState
source§impl Display for ExecutionState
impl Display for ExecutionState
impl Copy for ExecutionState
Auto Trait Implementations§
impl RefUnwindSafe for ExecutionState
impl Send for ExecutionState
impl Sync for ExecutionState
impl Unpin for ExecutionState
impl UnwindSafe for ExecutionState
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