wrpc_runtime_wasmtime

Function call

source
pub async fn call<C, I, O>(
    store: C,
    rx: I,
    tx: O,
    params_ty: impl ExactSizeIterator<Item = &Type>,
    results_ty: impl ExactSizeIterator<Item = &Type>,
    func: Func,
    guest_resources: &[ResourceType],
) -> Result<()>
where I: AsyncRead + Index<I> + Send + Sync + Unpin + 'static, O: AsyncWrite + Index<O> + Send + Sync + Unpin + 'static, C: AsContextMut, C::Data: WasiView + WrpcView,