Struct budvm::PausedExecution
source · pub struct PausedExecution<'a, Env, ReturnType>where
Env: Environment,{ /* private fields */ }
Expand description
A paused code execution.
Implementations§
source§impl<'a, Env, ReturnType> PausedExecution<'a, Env, ReturnType>where
Env: Environment,
ReturnType: FromStack,
impl<'a, Env, ReturnType> PausedExecution<'a, Env, ReturnType>where Env: Environment, ReturnType: FromStack,
sourcepub fn environment(&self) -> &Env
pub fn environment(&self) -> &Env
Returns a reference to the Environment
from the virtual machine that
is paused.
sourcepub fn environment_mut(&mut self) -> &mut Env
pub fn environment_mut(&mut self) -> &mut Env
Returns a mutable reference to the Environment
from the virtual
machine that is paused.
sourcepub fn resume(self) -> Result<ReturnType, Fault<'a, Env, ReturnType>>where
Env: Environment,
pub fn resume(self) -> Result<ReturnType, Fault<'a, Env, ReturnType>>where Env: Environment,
Resumes executing the virtual machine.
Trait Implementations§
source§impl<'a, Env, ReturnType: Debug> Debug for PausedExecution<'a, Env, ReturnType>where
Env: Environment + Debug,
Env::Intrinsic: Debug,
impl<'a, Env, ReturnType: Debug> Debug for PausedExecution<'a, Env, ReturnType>where Env: Environment + Debug, Env::Intrinsic: Debug,
source§impl<'a, Env, ReturnType: PartialEq> PartialEq<PausedExecution<'a, Env, ReturnType>> for PausedExecution<'a, Env, ReturnType>where
Env: Environment + PartialEq,
Env::Intrinsic: PartialEq,
impl<'a, Env, ReturnType: PartialEq> PartialEq<PausedExecution<'a, Env, ReturnType>> for PausedExecution<'a, Env, ReturnType>where Env: Environment + PartialEq, Env::Intrinsic: PartialEq,
source§fn eq(&self, other: &PausedExecution<'a, Env, ReturnType>) -> bool
fn eq(&self, other: &PausedExecution<'a, Env, ReturnType>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.