AsyncTrampoline

Trait AsyncTrampoline 

Source
pub trait AsyncTrampoline<D: Send, C: Send + Sync = ()>:
    Send
    + Sync
    + 'static {
    // Provided method
    fn bounce_async<'c>(
        &'c self,
        call: AsyncGuestCall<'c, D, C>,
    ) -> Pin<Box<dyn Future<Output = Result<AsyncGuestResult<'c, D, C>, Error>> + Send + 'c>> { ... }
}
Expand description

Like Trampoline, but for asynchronous WASM function calls.

Provided Methods§

Source

fn bounce_async<'c>( &'c self, call: AsyncGuestCall<'c, D, C>, ) -> Pin<Box<dyn Future<Output = Result<AsyncGuestResult<'c, D, C>, Error>> + Send + 'c>>

Implementations on Foreign Types§

Source§

impl<D: Send + 'static, C: Send + Sync + 'static> AsyncTrampoline<D, C> for Arc<dyn AsyncTrampoline<D, C>>

Source§

fn bounce_async<'c>( &'c self, call: AsyncGuestCall<'c, D, C>, ) -> Pin<Box<dyn Future<Output = Result<AsyncGuestResult<'c, D, C>, Error>> + Send + 'c>>

Implementors§