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.

Trait Implementations

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.