Struct runestick::VmSendExecution [−][src]
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
impl VmSendExecution
[src]
pub fn async_complete(
self
) -> impl Future<Output = Result<Value, VmError>> + Send + 'static
[src]
self
) -> impl Future<Output = Result<Value, VmError>> + Send + 'static
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
impl Send for VmSendExecution
[src]
Auto Trait Implementations
impl !RefUnwindSafe for VmSendExecution
impl !Sync for VmSendExecution
impl Unpin for VmSendExecution
impl !UnwindSafe for VmSendExecution
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,