pub trait Execution: Send {
// Required method
fn resume<'life0, 'async_trait>(
&'life0 mut self,
answer: Result<Value, String>,
) -> Pin<Box<dyn Future<Output = Suspension> + Send + 'async_trait>>
where 'life0: 'async_trait,
Self: 'async_trait;
}Expand description
A program suspended at a call. Dropping it cancels the program.
Required Methods§
Sourcefn resume<'life0, 'async_trait>(
&'life0 mut self,
answer: Result<Value, String>,
) -> Pin<Box<dyn Future<Output = Suspension> + Send + 'async_trait>>where
'life0: 'async_trait,
Self: 'async_trait,
fn resume<'life0, 'async_trait>(
&'life0 mut self,
answer: Result<Value, String>,
) -> Pin<Box<dyn Future<Output = Suspension> + Send + 'async_trait>>where
'life0: 'async_trait,
Self: 'async_trait,
Resume the program with the result of the call it waits on, or with
the reason the call failed (raised as RuntimeError), and run it to
its next suspension.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".