Trait AsyncHostFunction

Source
pub trait AsyncHostFunction<T, Args, Rets, Kind>
where Args: WasmTypeList + 'static, Rets: WasmTypeList, Kind: HostFunctionKind,
{ // Required method fn call_async( &self, env: AsyncFunctionEnv<T, Kind>, args: Args, ) -> Pin<Box<dyn Future<Output = Result<Rets, RuntimeError>>>>; }
Expand description

Async counterpart to HostFunction.

Required Methods§

Source

fn call_async( &self, env: AsyncFunctionEnv<T, Kind>, args: Args, ) -> Pin<Box<dyn Future<Output = Result<Rets, RuntimeError>>>>

Invoke the host function asynchronously.

Implementors§

Source§

impl<A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, A16, A17, A18, A19, A20, Rets, RetsAsResult, F, Fut> AsyncHostFunction<(), (A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, A16, A17, A18, A19, A20), Rets, WithoutEnv> for F
where F: Fn(A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, A16, A17, A18, A19, A20) -> Fut + 'static, Fut: Future<Output = RetsAsResult> + 'static, RetsAsResult: IntoResult<Rets>, Rets: WasmTypeList, (A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, A16, A17, A18, A19, A20): WasmTypeList + 'static, A1: FromToNativeWasmType + 'static, A2: FromToNativeWasmType + 'static, A3: FromToNativeWasmType + 'static, A4: FromToNativeWasmType + 'static, A5: FromToNativeWasmType + 'static, A6: FromToNativeWasmType + 'static, A7: FromToNativeWasmType + 'static, A8: FromToNativeWasmType + 'static, A9: FromToNativeWasmType + 'static, A10: FromToNativeWasmType + 'static, A11: FromToNativeWasmType + 'static, A12: FromToNativeWasmType + 'static, A13: FromToNativeWasmType + 'static, A14: FromToNativeWasmType + 'static, A15: FromToNativeWasmType + 'static, A16: FromToNativeWasmType + 'static, A17: FromToNativeWasmType + 'static, A18: FromToNativeWasmType + 'static, A19: FromToNativeWasmType + 'static, A20: FromToNativeWasmType + 'static,

Source§

impl<A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, A16, A17, A18, A19, A20, Rets, RetsAsResult, T, F, Fut> AsyncHostFunction<T, (A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, A16, A17, A18, A19, A20), Rets, WithEnv> for F
where T: 'static, F: Fn(AsyncFunctionEnvMut<T>, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, A16, A17, A18, A19, A20) -> Fut + 'static, Fut: Future<Output = RetsAsResult> + 'static, RetsAsResult: IntoResult<Rets>, Rets: WasmTypeList, (A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, A16, A17, A18, A19, A20): WasmTypeList + 'static, A1: FromToNativeWasmType + 'static, A2: FromToNativeWasmType + 'static, A3: FromToNativeWasmType + 'static, A4: FromToNativeWasmType + 'static, A5: FromToNativeWasmType + 'static, A6: FromToNativeWasmType + 'static, A7: FromToNativeWasmType + 'static, A8: FromToNativeWasmType + 'static, A9: FromToNativeWasmType + 'static, A10: FromToNativeWasmType + 'static, A11: FromToNativeWasmType + 'static, A12: FromToNativeWasmType + 'static, A13: FromToNativeWasmType + 'static, A14: FromToNativeWasmType + 'static, A15: FromToNativeWasmType + 'static, A16: FromToNativeWasmType + 'static, A17: FromToNativeWasmType + 'static, A18: FromToNativeWasmType + 'static, A19: FromToNativeWasmType + 'static, A20: FromToNativeWasmType + 'static,

Source§

impl<A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, A16, A17, A18, A19, Rets, RetsAsResult, F, Fut> AsyncHostFunction<(), (A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, A16, A17, A18, A19), Rets, WithoutEnv> for F
where F: Fn(A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, A16, A17, A18, A19) -> Fut + 'static, Fut: Future<Output = RetsAsResult> + 'static, RetsAsResult: IntoResult<Rets>, Rets: WasmTypeList, (A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, A16, A17, A18, A19): WasmTypeList + 'static, A1: FromToNativeWasmType + 'static, A2: FromToNativeWasmType + 'static, A3: FromToNativeWasmType + 'static, A4: FromToNativeWasmType + 'static, A5: FromToNativeWasmType + 'static, A6: FromToNativeWasmType + 'static, A7: FromToNativeWasmType + 'static, A8: FromToNativeWasmType + 'static, A9: FromToNativeWasmType + 'static, A10: FromToNativeWasmType + 'static, A11: FromToNativeWasmType + 'static, A12: FromToNativeWasmType + 'static, A13: FromToNativeWasmType + 'static, A14: FromToNativeWasmType + 'static, A15: FromToNativeWasmType + 'static, A16: FromToNativeWasmType + 'static, A17: FromToNativeWasmType + 'static, A18: FromToNativeWasmType + 'static, A19: FromToNativeWasmType + 'static,

Source§

impl<A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, A16, A17, A18, A19, Rets, RetsAsResult, T, F, Fut> AsyncHostFunction<T, (A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, A16, A17, A18, A19), Rets, WithEnv> for F
where T: 'static, F: Fn(AsyncFunctionEnvMut<T>, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, A16, A17, A18, A19) -> Fut + 'static, Fut: Future<Output = RetsAsResult> + 'static, RetsAsResult: IntoResult<Rets>, Rets: WasmTypeList, (A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, A16, A17, A18, A19): WasmTypeList + 'static, A1: FromToNativeWasmType + 'static, A2: FromToNativeWasmType + 'static, A3: FromToNativeWasmType + 'static, A4: FromToNativeWasmType + 'static, A5: FromToNativeWasmType + 'static, A6: FromToNativeWasmType + 'static, A7: FromToNativeWasmType + 'static, A8: FromToNativeWasmType + 'static, A9: FromToNativeWasmType + 'static, A10: FromToNativeWasmType + 'static, A11: FromToNativeWasmType + 'static, A12: FromToNativeWasmType + 'static, A13: FromToNativeWasmType + 'static, A14: FromToNativeWasmType + 'static, A15: FromToNativeWasmType + 'static, A16: FromToNativeWasmType + 'static, A17: FromToNativeWasmType + 'static, A18: FromToNativeWasmType + 'static, A19: FromToNativeWasmType + 'static,

Source§

impl<A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, A16, A17, A18, Rets, RetsAsResult, F, Fut> AsyncHostFunction<(), (A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, A16, A17, A18), Rets, WithoutEnv> for F
where F: Fn(A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, A16, A17, A18) -> Fut + 'static, Fut: Future<Output = RetsAsResult> + 'static, RetsAsResult: IntoResult<Rets>, Rets: WasmTypeList, (A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, A16, A17, A18): WasmTypeList + 'static, A1: FromToNativeWasmType + 'static, A2: FromToNativeWasmType + 'static, A3: FromToNativeWasmType + 'static, A4: FromToNativeWasmType + 'static, A5: FromToNativeWasmType + 'static, A6: FromToNativeWasmType + 'static, A7: FromToNativeWasmType + 'static, A8: FromToNativeWasmType + 'static, A9: FromToNativeWasmType + 'static, A10: FromToNativeWasmType + 'static, A11: FromToNativeWasmType + 'static, A12: FromToNativeWasmType + 'static, A13: FromToNativeWasmType + 'static, A14: FromToNativeWasmType + 'static, A15: FromToNativeWasmType + 'static, A16: FromToNativeWasmType + 'static, A17: FromToNativeWasmType + 'static, A18: FromToNativeWasmType + 'static,

Source§

impl<A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, A16, A17, A18, Rets, RetsAsResult, T, F, Fut> AsyncHostFunction<T, (A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, A16, A17, A18), Rets, WithEnv> for F
where T: 'static, F: Fn(AsyncFunctionEnvMut<T>, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, A16, A17, A18) -> Fut + 'static, Fut: Future<Output = RetsAsResult> + 'static, RetsAsResult: IntoResult<Rets>, Rets: WasmTypeList, (A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, A16, A17, A18): WasmTypeList + 'static, A1: FromToNativeWasmType + 'static, A2: FromToNativeWasmType + 'static, A3: FromToNativeWasmType + 'static, A4: FromToNativeWasmType + 'static, A5: FromToNativeWasmType + 'static, A6: FromToNativeWasmType + 'static, A7: FromToNativeWasmType + 'static, A8: FromToNativeWasmType + 'static, A9: FromToNativeWasmType + 'static, A10: FromToNativeWasmType + 'static, A11: FromToNativeWasmType + 'static, A12: FromToNativeWasmType + 'static, A13: FromToNativeWasmType + 'static, A14: FromToNativeWasmType + 'static, A15: FromToNativeWasmType + 'static, A16: FromToNativeWasmType + 'static, A17: FromToNativeWasmType + 'static, A18: FromToNativeWasmType + 'static,

Source§

impl<A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, A16, A17, Rets, RetsAsResult, F, Fut> AsyncHostFunction<(), (A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, A16, A17), Rets, WithoutEnv> for F
where F: Fn(A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, A16, A17) -> Fut + 'static, Fut: Future<Output = RetsAsResult> + 'static, RetsAsResult: IntoResult<Rets>, Rets: WasmTypeList, (A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, A16, A17): WasmTypeList + 'static, A1: FromToNativeWasmType + 'static, A2: FromToNativeWasmType + 'static, A3: FromToNativeWasmType + 'static, A4: FromToNativeWasmType + 'static, A5: FromToNativeWasmType + 'static, A6: FromToNativeWasmType + 'static, A7: FromToNativeWasmType + 'static, A8: FromToNativeWasmType + 'static, A9: FromToNativeWasmType + 'static, A10: FromToNativeWasmType + 'static, A11: FromToNativeWasmType + 'static, A12: FromToNativeWasmType + 'static, A13: FromToNativeWasmType + 'static, A14: FromToNativeWasmType + 'static, A15: FromToNativeWasmType + 'static, A16: FromToNativeWasmType + 'static, A17: FromToNativeWasmType + 'static,

Source§

impl<A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, A16, A17, Rets, RetsAsResult, T, F, Fut> AsyncHostFunction<T, (A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, A16, A17), Rets, WithEnv> for F
where T: 'static, F: Fn(AsyncFunctionEnvMut<T>, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, A16, A17) -> Fut + 'static, Fut: Future<Output = RetsAsResult> + 'static, RetsAsResult: IntoResult<Rets>, Rets: WasmTypeList, (A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, A16, A17): WasmTypeList + 'static, A1: FromToNativeWasmType + 'static, A2: FromToNativeWasmType + 'static, A3: FromToNativeWasmType + 'static, A4: FromToNativeWasmType + 'static, A5: FromToNativeWasmType + 'static, A6: FromToNativeWasmType + 'static, A7: FromToNativeWasmType + 'static, A8: FromToNativeWasmType + 'static, A9: FromToNativeWasmType + 'static, A10: FromToNativeWasmType + 'static, A11: FromToNativeWasmType + 'static, A12: FromToNativeWasmType + 'static, A13: FromToNativeWasmType + 'static, A14: FromToNativeWasmType + 'static, A15: FromToNativeWasmType + 'static, A16: FromToNativeWasmType + 'static, A17: FromToNativeWasmType + 'static,

Source§

impl<A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, A16, Rets, RetsAsResult, F, Fut> AsyncHostFunction<(), (A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, A16), Rets, WithoutEnv> for F
where F: Fn(A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, A16) -> Fut + 'static, Fut: Future<Output = RetsAsResult> + 'static, RetsAsResult: IntoResult<Rets>, Rets: WasmTypeList, (A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, A16): WasmTypeList + 'static, A1: FromToNativeWasmType + 'static, A2: FromToNativeWasmType + 'static, A3: FromToNativeWasmType + 'static, A4: FromToNativeWasmType + 'static, A5: FromToNativeWasmType + 'static, A6: FromToNativeWasmType + 'static, A7: FromToNativeWasmType + 'static, A8: FromToNativeWasmType + 'static, A9: FromToNativeWasmType + 'static, A10: FromToNativeWasmType + 'static, A11: FromToNativeWasmType + 'static, A12: FromToNativeWasmType + 'static, A13: FromToNativeWasmType + 'static, A14: FromToNativeWasmType + 'static, A15: FromToNativeWasmType + 'static, A16: FromToNativeWasmType + 'static,

Source§

impl<A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, A16, Rets, RetsAsResult, T, F, Fut> AsyncHostFunction<T, (A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, A16), Rets, WithEnv> for F
where T: 'static, F: Fn(AsyncFunctionEnvMut<T>, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, A16) -> Fut + 'static, Fut: Future<Output = RetsAsResult> + 'static, RetsAsResult: IntoResult<Rets>, Rets: WasmTypeList, (A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, A16): WasmTypeList + 'static, A1: FromToNativeWasmType + 'static, A2: FromToNativeWasmType + 'static, A3: FromToNativeWasmType + 'static, A4: FromToNativeWasmType + 'static, A5: FromToNativeWasmType + 'static, A6: FromToNativeWasmType + 'static, A7: FromToNativeWasmType + 'static, A8: FromToNativeWasmType + 'static, A9: FromToNativeWasmType + 'static, A10: FromToNativeWasmType + 'static, A11: FromToNativeWasmType + 'static, A12: FromToNativeWasmType + 'static, A13: FromToNativeWasmType + 'static, A14: FromToNativeWasmType + 'static, A15: FromToNativeWasmType + 'static, A16: FromToNativeWasmType + 'static,

Source§

impl<A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, Rets, RetsAsResult, F, Fut> AsyncHostFunction<(), (A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15), Rets, WithoutEnv> for F
where F: Fn(A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15) -> Fut + 'static, Fut: Future<Output = RetsAsResult> + 'static, RetsAsResult: IntoResult<Rets>, Rets: WasmTypeList, (A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15): WasmTypeList + 'static, A1: FromToNativeWasmType + 'static, A2: FromToNativeWasmType + 'static, A3: FromToNativeWasmType + 'static, A4: FromToNativeWasmType + 'static, A5: FromToNativeWasmType + 'static, A6: FromToNativeWasmType + 'static, A7: FromToNativeWasmType + 'static, A8: FromToNativeWasmType + 'static, A9: FromToNativeWasmType + 'static, A10: FromToNativeWasmType + 'static, A11: FromToNativeWasmType + 'static, A12: FromToNativeWasmType + 'static, A13: FromToNativeWasmType + 'static, A14: FromToNativeWasmType + 'static, A15: FromToNativeWasmType + 'static,

Source§

impl<A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, Rets, RetsAsResult, T, F, Fut> AsyncHostFunction<T, (A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15), Rets, WithEnv> for F
where T: 'static, F: Fn(AsyncFunctionEnvMut<T>, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15) -> Fut + 'static, Fut: Future<Output = RetsAsResult> + 'static, RetsAsResult: IntoResult<Rets>, Rets: WasmTypeList, (A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15): WasmTypeList + 'static, A1: FromToNativeWasmType + 'static, A2: FromToNativeWasmType + 'static, A3: FromToNativeWasmType + 'static, A4: FromToNativeWasmType + 'static, A5: FromToNativeWasmType + 'static, A6: FromToNativeWasmType + 'static, A7: FromToNativeWasmType + 'static, A8: FromToNativeWasmType + 'static, A9: FromToNativeWasmType + 'static, A10: FromToNativeWasmType + 'static, A11: FromToNativeWasmType + 'static, A12: FromToNativeWasmType + 'static, A13: FromToNativeWasmType + 'static, A14: FromToNativeWasmType + 'static, A15: FromToNativeWasmType + 'static,

Source§

impl<A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, Rets, RetsAsResult, F, Fut> AsyncHostFunction<(), (A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14), Rets, WithoutEnv> for F
where F: Fn(A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14) -> Fut + 'static, Fut: Future<Output = RetsAsResult> + 'static, RetsAsResult: IntoResult<Rets>, Rets: WasmTypeList, (A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14): WasmTypeList + 'static, A1: FromToNativeWasmType + 'static, A2: FromToNativeWasmType + 'static, A3: FromToNativeWasmType + 'static, A4: FromToNativeWasmType + 'static, A5: FromToNativeWasmType + 'static, A6: FromToNativeWasmType + 'static, A7: FromToNativeWasmType + 'static, A8: FromToNativeWasmType + 'static, A9: FromToNativeWasmType + 'static, A10: FromToNativeWasmType + 'static, A11: FromToNativeWasmType + 'static, A12: FromToNativeWasmType + 'static, A13: FromToNativeWasmType + 'static, A14: FromToNativeWasmType + 'static,

Source§

impl<A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, Rets, RetsAsResult, T, F, Fut> AsyncHostFunction<T, (A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14), Rets, WithEnv> for F
where T: 'static, F: Fn(AsyncFunctionEnvMut<T>, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14) -> Fut + 'static, Fut: Future<Output = RetsAsResult> + 'static, RetsAsResult: IntoResult<Rets>, Rets: WasmTypeList, (A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14): WasmTypeList + 'static, A1: FromToNativeWasmType + 'static, A2: FromToNativeWasmType + 'static, A3: FromToNativeWasmType + 'static, A4: FromToNativeWasmType + 'static, A5: FromToNativeWasmType + 'static, A6: FromToNativeWasmType + 'static, A7: FromToNativeWasmType + 'static, A8: FromToNativeWasmType + 'static, A9: FromToNativeWasmType + 'static, A10: FromToNativeWasmType + 'static, A11: FromToNativeWasmType + 'static, A12: FromToNativeWasmType + 'static, A13: FromToNativeWasmType + 'static, A14: FromToNativeWasmType + 'static,

Source§

impl<A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, Rets, RetsAsResult, F, Fut> AsyncHostFunction<(), (A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13), Rets, WithoutEnv> for F
where F: Fn(A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13) -> Fut + 'static, Fut: Future<Output = RetsAsResult> + 'static, RetsAsResult: IntoResult<Rets>, Rets: WasmTypeList, (A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13): WasmTypeList + 'static, A1: FromToNativeWasmType + 'static, A2: FromToNativeWasmType + 'static, A3: FromToNativeWasmType + 'static, A4: FromToNativeWasmType + 'static, A5: FromToNativeWasmType + 'static, A6: FromToNativeWasmType + 'static, A7: FromToNativeWasmType + 'static, A8: FromToNativeWasmType + 'static, A9: FromToNativeWasmType + 'static, A10: FromToNativeWasmType + 'static, A11: FromToNativeWasmType + 'static, A12: FromToNativeWasmType + 'static, A13: FromToNativeWasmType + 'static,

Source§

impl<A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, Rets, RetsAsResult, T, F, Fut> AsyncHostFunction<T, (A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13), Rets, WithEnv> for F
where T: 'static, F: Fn(AsyncFunctionEnvMut<T>, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13) -> Fut + 'static, Fut: Future<Output = RetsAsResult> + 'static, RetsAsResult: IntoResult<Rets>, Rets: WasmTypeList, (A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13): WasmTypeList + 'static, A1: FromToNativeWasmType + 'static, A2: FromToNativeWasmType + 'static, A3: FromToNativeWasmType + 'static, A4: FromToNativeWasmType + 'static, A5: FromToNativeWasmType + 'static, A6: FromToNativeWasmType + 'static, A7: FromToNativeWasmType + 'static, A8: FromToNativeWasmType + 'static, A9: FromToNativeWasmType + 'static, A10: FromToNativeWasmType + 'static, A11: FromToNativeWasmType + 'static, A12: FromToNativeWasmType + 'static, A13: FromToNativeWasmType + 'static,

Source§

impl<A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, Rets, RetsAsResult, F, Fut> AsyncHostFunction<(), (A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12), Rets, WithoutEnv> for F
where F: Fn(A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12) -> Fut + 'static, Fut: Future<Output = RetsAsResult> + 'static, RetsAsResult: IntoResult<Rets>, Rets: WasmTypeList, (A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12): WasmTypeList + 'static, A1: FromToNativeWasmType + 'static, A2: FromToNativeWasmType + 'static, A3: FromToNativeWasmType + 'static, A4: FromToNativeWasmType + 'static, A5: FromToNativeWasmType + 'static, A6: FromToNativeWasmType + 'static, A7: FromToNativeWasmType + 'static, A8: FromToNativeWasmType + 'static, A9: FromToNativeWasmType + 'static, A10: FromToNativeWasmType + 'static, A11: FromToNativeWasmType + 'static, A12: FromToNativeWasmType + 'static,

Source§

impl<A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, Rets, RetsAsResult, T, F, Fut> AsyncHostFunction<T, (A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12), Rets, WithEnv> for F
where T: 'static, F: Fn(AsyncFunctionEnvMut<T>, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12) -> Fut + 'static, Fut: Future<Output = RetsAsResult> + 'static, RetsAsResult: IntoResult<Rets>, Rets: WasmTypeList, (A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12): WasmTypeList + 'static, A1: FromToNativeWasmType + 'static, A2: FromToNativeWasmType + 'static, A3: FromToNativeWasmType + 'static, A4: FromToNativeWasmType + 'static, A5: FromToNativeWasmType + 'static, A6: FromToNativeWasmType + 'static, A7: FromToNativeWasmType + 'static, A8: FromToNativeWasmType + 'static, A9: FromToNativeWasmType + 'static, A10: FromToNativeWasmType + 'static, A11: FromToNativeWasmType + 'static, A12: FromToNativeWasmType + 'static,

Source§

impl<A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, Rets, RetsAsResult, F, Fut> AsyncHostFunction<(), (A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11), Rets, WithoutEnv> for F
where F: Fn(A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11) -> Fut + 'static, Fut: Future<Output = RetsAsResult> + 'static, RetsAsResult: IntoResult<Rets>, Rets: WasmTypeList, (A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11): WasmTypeList + 'static, A1: FromToNativeWasmType + 'static, A2: FromToNativeWasmType + 'static, A3: FromToNativeWasmType + 'static, A4: FromToNativeWasmType + 'static, A5: FromToNativeWasmType + 'static, A6: FromToNativeWasmType + 'static, A7: FromToNativeWasmType + 'static, A8: FromToNativeWasmType + 'static, A9: FromToNativeWasmType + 'static, A10: FromToNativeWasmType + 'static, A11: FromToNativeWasmType + 'static,

Source§

impl<A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, Rets, RetsAsResult, T, F, Fut> AsyncHostFunction<T, (A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11), Rets, WithEnv> for F
where T: 'static, F: Fn(AsyncFunctionEnvMut<T>, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11) -> Fut + 'static, Fut: Future<Output = RetsAsResult> + 'static, RetsAsResult: IntoResult<Rets>, Rets: WasmTypeList, (A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11): WasmTypeList + 'static, A1: FromToNativeWasmType + 'static, A2: FromToNativeWasmType + 'static, A3: FromToNativeWasmType + 'static, A4: FromToNativeWasmType + 'static, A5: FromToNativeWasmType + 'static, A6: FromToNativeWasmType + 'static, A7: FromToNativeWasmType + 'static, A8: FromToNativeWasmType + 'static, A9: FromToNativeWasmType + 'static, A10: FromToNativeWasmType + 'static, A11: FromToNativeWasmType + 'static,

Source§

impl<A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, Rets, RetsAsResult, F, Fut> AsyncHostFunction<(), (A1, A2, A3, A4, A5, A6, A7, A8, A9, A10), Rets, WithoutEnv> for F
where F: Fn(A1, A2, A3, A4, A5, A6, A7, A8, A9, A10) -> Fut + 'static, Fut: Future<Output = RetsAsResult> + 'static, RetsAsResult: IntoResult<Rets>, Rets: WasmTypeList, (A1, A2, A3, A4, A5, A6, A7, A8, A9, A10): WasmTypeList + 'static, A1: FromToNativeWasmType + 'static, A2: FromToNativeWasmType + 'static, A3: FromToNativeWasmType + 'static, A4: FromToNativeWasmType + 'static, A5: FromToNativeWasmType + 'static, A6: FromToNativeWasmType + 'static, A7: FromToNativeWasmType + 'static, A8: FromToNativeWasmType + 'static, A9: FromToNativeWasmType + 'static, A10: FromToNativeWasmType + 'static,

Source§

impl<A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, Rets, RetsAsResult, T, F, Fut> AsyncHostFunction<T, (A1, A2, A3, A4, A5, A6, A7, A8, A9, A10), Rets, WithEnv> for F
where T: 'static, F: Fn(AsyncFunctionEnvMut<T>, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10) -> Fut + 'static, Fut: Future<Output = RetsAsResult> + 'static, RetsAsResult: IntoResult<Rets>, Rets: WasmTypeList, (A1, A2, A3, A4, A5, A6, A7, A8, A9, A10): WasmTypeList + 'static, A1: FromToNativeWasmType + 'static, A2: FromToNativeWasmType + 'static, A3: FromToNativeWasmType + 'static, A4: FromToNativeWasmType + 'static, A5: FromToNativeWasmType + 'static, A6: FromToNativeWasmType + 'static, A7: FromToNativeWasmType + 'static, A8: FromToNativeWasmType + 'static, A9: FromToNativeWasmType + 'static, A10: FromToNativeWasmType + 'static,

Source§

impl<A1, A2, A3, A4, A5, A6, A7, A8, A9, Rets, RetsAsResult, F, Fut> AsyncHostFunction<(), (A1, A2, A3, A4, A5, A6, A7, A8, A9), Rets, WithoutEnv> for F
where F: Fn(A1, A2, A3, A4, A5, A6, A7, A8, A9) -> Fut + 'static, Fut: Future<Output = RetsAsResult> + 'static, RetsAsResult: IntoResult<Rets>, Rets: WasmTypeList, (A1, A2, A3, A4, A5, A6, A7, A8, A9): WasmTypeList + 'static, A1: FromToNativeWasmType + 'static, A2: FromToNativeWasmType + 'static, A3: FromToNativeWasmType + 'static, A4: FromToNativeWasmType + 'static, A5: FromToNativeWasmType + 'static, A6: FromToNativeWasmType + 'static, A7: FromToNativeWasmType + 'static, A8: FromToNativeWasmType + 'static, A9: FromToNativeWasmType + 'static,

Source§

impl<A1, A2, A3, A4, A5, A6, A7, A8, A9, Rets, RetsAsResult, T, F, Fut> AsyncHostFunction<T, (A1, A2, A3, A4, A5, A6, A7, A8, A9), Rets, WithEnv> for F
where T: 'static, F: Fn(AsyncFunctionEnvMut<T>, A1, A2, A3, A4, A5, A6, A7, A8, A9) -> Fut + 'static, Fut: Future<Output = RetsAsResult> + 'static, RetsAsResult: IntoResult<Rets>, Rets: WasmTypeList, (A1, A2, A3, A4, A5, A6, A7, A8, A9): WasmTypeList + 'static, A1: FromToNativeWasmType + 'static, A2: FromToNativeWasmType + 'static, A3: FromToNativeWasmType + 'static, A4: FromToNativeWasmType + 'static, A5: FromToNativeWasmType + 'static, A6: FromToNativeWasmType + 'static, A7: FromToNativeWasmType + 'static, A8: FromToNativeWasmType + 'static, A9: FromToNativeWasmType + 'static,

Source§

impl<A1, A2, A3, A4, A5, A6, A7, A8, Rets, RetsAsResult, F, Fut> AsyncHostFunction<(), (A1, A2, A3, A4, A5, A6, A7, A8), Rets, WithoutEnv> for F
where F: Fn(A1, A2, A3, A4, A5, A6, A7, A8) -> Fut + 'static, Fut: Future<Output = RetsAsResult> + 'static, RetsAsResult: IntoResult<Rets>, Rets: WasmTypeList, (A1, A2, A3, A4, A5, A6, A7, A8): WasmTypeList + 'static, A1: FromToNativeWasmType + 'static, A2: FromToNativeWasmType + 'static, A3: FromToNativeWasmType + 'static, A4: FromToNativeWasmType + 'static, A5: FromToNativeWasmType + 'static, A6: FromToNativeWasmType + 'static, A7: FromToNativeWasmType + 'static, A8: FromToNativeWasmType + 'static,

Source§

impl<A1, A2, A3, A4, A5, A6, A7, A8, Rets, RetsAsResult, T, F, Fut> AsyncHostFunction<T, (A1, A2, A3, A4, A5, A6, A7, A8), Rets, WithEnv> for F
where T: 'static, F: Fn(AsyncFunctionEnvMut<T>, A1, A2, A3, A4, A5, A6, A7, A8) -> Fut + 'static, Fut: Future<Output = RetsAsResult> + 'static, RetsAsResult: IntoResult<Rets>, Rets: WasmTypeList, (A1, A2, A3, A4, A5, A6, A7, A8): WasmTypeList + 'static, A1: FromToNativeWasmType + 'static, A2: FromToNativeWasmType + 'static, A3: FromToNativeWasmType + 'static, A4: FromToNativeWasmType + 'static, A5: FromToNativeWasmType + 'static, A6: FromToNativeWasmType + 'static, A7: FromToNativeWasmType + 'static, A8: FromToNativeWasmType + 'static,

Source§

impl<A1, A2, A3, A4, A5, A6, A7, Rets, RetsAsResult, F, Fut> AsyncHostFunction<(), (A1, A2, A3, A4, A5, A6, A7), Rets, WithoutEnv> for F
where F: Fn(A1, A2, A3, A4, A5, A6, A7) -> Fut + 'static, Fut: Future<Output = RetsAsResult> + 'static, RetsAsResult: IntoResult<Rets>, Rets: WasmTypeList, (A1, A2, A3, A4, A5, A6, A7): WasmTypeList + 'static, A1: FromToNativeWasmType + 'static, A2: FromToNativeWasmType + 'static, A3: FromToNativeWasmType + 'static, A4: FromToNativeWasmType + 'static, A5: FromToNativeWasmType + 'static, A6: FromToNativeWasmType + 'static, A7: FromToNativeWasmType + 'static,

Source§

impl<A1, A2, A3, A4, A5, A6, A7, Rets, RetsAsResult, T, F, Fut> AsyncHostFunction<T, (A1, A2, A3, A4, A5, A6, A7), Rets, WithEnv> for F
where T: 'static, F: Fn(AsyncFunctionEnvMut<T>, A1, A2, A3, A4, A5, A6, A7) -> Fut + 'static, Fut: Future<Output = RetsAsResult> + 'static, RetsAsResult: IntoResult<Rets>, Rets: WasmTypeList, (A1, A2, A3, A4, A5, A6, A7): WasmTypeList + 'static, A1: FromToNativeWasmType + 'static, A2: FromToNativeWasmType + 'static, A3: FromToNativeWasmType + 'static, A4: FromToNativeWasmType + 'static, A5: FromToNativeWasmType + 'static, A6: FromToNativeWasmType + 'static, A7: FromToNativeWasmType + 'static,

Source§

impl<A1, A2, A3, A4, A5, A6, Rets, RetsAsResult, F, Fut> AsyncHostFunction<(), (A1, A2, A3, A4, A5, A6), Rets, WithoutEnv> for F
where F: Fn(A1, A2, A3, A4, A5, A6) -> Fut + 'static, Fut: Future<Output = RetsAsResult> + 'static, RetsAsResult: IntoResult<Rets>, Rets: WasmTypeList, (A1, A2, A3, A4, A5, A6): WasmTypeList + 'static, A1: FromToNativeWasmType + 'static, A2: FromToNativeWasmType + 'static, A3: FromToNativeWasmType + 'static, A4: FromToNativeWasmType + 'static, A5: FromToNativeWasmType + 'static, A6: FromToNativeWasmType + 'static,

Source§

impl<A1, A2, A3, A4, A5, A6, Rets, RetsAsResult, T, F, Fut> AsyncHostFunction<T, (A1, A2, A3, A4, A5, A6), Rets, WithEnv> for F
where T: 'static, F: Fn(AsyncFunctionEnvMut<T>, A1, A2, A3, A4, A5, A6) -> Fut + 'static, Fut: Future<Output = RetsAsResult> + 'static, RetsAsResult: IntoResult<Rets>, Rets: WasmTypeList, (A1, A2, A3, A4, A5, A6): WasmTypeList + 'static, A1: FromToNativeWasmType + 'static, A2: FromToNativeWasmType + 'static, A3: FromToNativeWasmType + 'static, A4: FromToNativeWasmType + 'static, A5: FromToNativeWasmType + 'static, A6: FromToNativeWasmType + 'static,

Source§

impl<A1, A2, A3, A4, A5, Rets, RetsAsResult, F, Fut> AsyncHostFunction<(), (A1, A2, A3, A4, A5), Rets, WithoutEnv> for F
where F: Fn(A1, A2, A3, A4, A5) -> Fut + 'static, Fut: Future<Output = RetsAsResult> + 'static, RetsAsResult: IntoResult<Rets>, Rets: WasmTypeList, (A1, A2, A3, A4, A5): WasmTypeList + 'static, A1: FromToNativeWasmType + 'static, A2: FromToNativeWasmType + 'static, A3: FromToNativeWasmType + 'static, A4: FromToNativeWasmType + 'static, A5: FromToNativeWasmType + 'static,

Source§

impl<A1, A2, A3, A4, A5, Rets, RetsAsResult, T, F, Fut> AsyncHostFunction<T, (A1, A2, A3, A4, A5), Rets, WithEnv> for F
where T: 'static, F: Fn(AsyncFunctionEnvMut<T>, A1, A2, A3, A4, A5) -> Fut + 'static, Fut: Future<Output = RetsAsResult> + 'static, RetsAsResult: IntoResult<Rets>, Rets: WasmTypeList, (A1, A2, A3, A4, A5): WasmTypeList + 'static, A1: FromToNativeWasmType + 'static, A2: FromToNativeWasmType + 'static, A3: FromToNativeWasmType + 'static, A4: FromToNativeWasmType + 'static, A5: FromToNativeWasmType + 'static,

Source§

impl<A1, A2, A3, A4, Rets, RetsAsResult, F, Fut> AsyncHostFunction<(), (A1, A2, A3, A4), Rets, WithoutEnv> for F
where F: Fn(A1, A2, A3, A4) -> Fut + 'static, Fut: Future<Output = RetsAsResult> + 'static, RetsAsResult: IntoResult<Rets>, Rets: WasmTypeList, (A1, A2, A3, A4): WasmTypeList + 'static, A1: FromToNativeWasmType + 'static, A2: FromToNativeWasmType + 'static, A3: FromToNativeWasmType + 'static, A4: FromToNativeWasmType + 'static,

Source§

impl<A1, A2, A3, A4, Rets, RetsAsResult, T, F, Fut> AsyncHostFunction<T, (A1, A2, A3, A4), Rets, WithEnv> for F
where T: 'static, F: Fn(AsyncFunctionEnvMut<T>, A1, A2, A3, A4) -> Fut + 'static, Fut: Future<Output = RetsAsResult> + 'static, RetsAsResult: IntoResult<Rets>, Rets: WasmTypeList, (A1, A2, A3, A4): WasmTypeList + 'static, A1: FromToNativeWasmType + 'static, A2: FromToNativeWasmType + 'static, A3: FromToNativeWasmType + 'static, A4: FromToNativeWasmType + 'static,

Source§

impl<A1, A2, A3, Rets, RetsAsResult, F, Fut> AsyncHostFunction<(), (A1, A2, A3), Rets, WithoutEnv> for F
where F: Fn(A1, A2, A3) -> Fut + 'static, Fut: Future<Output = RetsAsResult> + 'static, RetsAsResult: IntoResult<Rets>, Rets: WasmTypeList, (A1, A2, A3): WasmTypeList + 'static, A1: FromToNativeWasmType + 'static, A2: FromToNativeWasmType + 'static, A3: FromToNativeWasmType + 'static,

Source§

impl<A1, A2, A3, Rets, RetsAsResult, T, F, Fut> AsyncHostFunction<T, (A1, A2, A3), Rets, WithEnv> for F
where T: 'static, F: Fn(AsyncFunctionEnvMut<T>, A1, A2, A3) -> Fut + 'static, Fut: Future<Output = RetsAsResult> + 'static, RetsAsResult: IntoResult<Rets>, Rets: WasmTypeList, (A1, A2, A3): WasmTypeList + 'static, A1: FromToNativeWasmType + 'static, A2: FromToNativeWasmType + 'static, A3: FromToNativeWasmType + 'static,

Source§

impl<A1, A2, Rets, RetsAsResult, F, Fut> AsyncHostFunction<(), (A1, A2), Rets, WithoutEnv> for F
where F: Fn(A1, A2) -> Fut + 'static, Fut: Future<Output = RetsAsResult> + 'static, RetsAsResult: IntoResult<Rets>, Rets: WasmTypeList, (A1, A2): WasmTypeList + 'static, A1: FromToNativeWasmType + 'static, A2: FromToNativeWasmType + 'static,

Source§

impl<A1, A2, Rets, RetsAsResult, T, F, Fut> AsyncHostFunction<T, (A1, A2), Rets, WithEnv> for F
where T: 'static, F: Fn(AsyncFunctionEnvMut<T>, A1, A2) -> Fut + 'static, Fut: Future<Output = RetsAsResult> + 'static, RetsAsResult: IntoResult<Rets>, Rets: WasmTypeList, (A1, A2): WasmTypeList + 'static, A1: FromToNativeWasmType + 'static, A2: FromToNativeWasmType + 'static,

Source§

impl<A1, Rets, RetsAsResult, F, Fut> AsyncHostFunction<(), A1, Rets, WithoutEnv> for F
where F: Fn(A1) -> Fut + 'static, Fut: Future<Output = RetsAsResult> + 'static, RetsAsResult: IntoResult<Rets>, Rets: WasmTypeList, A1: WasmTypeList + 'static + FromToNativeWasmType,

Source§

impl<A1, Rets, RetsAsResult, T, F, Fut> AsyncHostFunction<T, A1, Rets, WithEnv> for F
where T: 'static, F: Fn(AsyncFunctionEnvMut<T>, A1) -> Fut + 'static, Fut: Future<Output = RetsAsResult> + 'static, RetsAsResult: IntoResult<Rets>, Rets: WasmTypeList, A1: WasmTypeList + 'static + FromToNativeWasmType,

Source§

impl<Rets, RetsAsResult, F, Fut> AsyncHostFunction<(), (), Rets, WithoutEnv> for F
where F: Fn() -> Fut + 'static, Fut: Future<Output = RetsAsResult> + 'static, RetsAsResult: IntoResult<Rets>, Rets: WasmTypeList, (): WasmTypeList + 'static,

Source§

impl<Rets, RetsAsResult, T, F, Fut> AsyncHostFunction<T, (), Rets, WithEnv> for F
where T: 'static, F: Fn(AsyncFunctionEnvMut<T>) -> Fut + 'static, Fut: Future<Output = RetsAsResult> + 'static, RetsAsResult: IntoResult<Rets>, Rets: WasmTypeList, (): WasmTypeList + 'static,