Struct runestick::VmSendExecution [−][src]
pub struct VmSendExecution(_);
Expand description
A wrapper that makes VmExecution
Send
.
This is accomplished by preventing any Value
from escaping the Vm
.
As long as this is maintained, it is safe to send the execution across,
threads, and therefore schedule the future associated with the execution on
a thread pool like Tokio’s through tokio::spawn.
Implementations
Complete the current execution with support for async instructions.
This requires that the result of the Vm is converted into a crate::FromValue that also implements Send, which prevents non-Send values from escaping from the virtual machine.