wasmcloud_provider_sdk::provider

Function serve_provider_exports

source
pub async fn serve_provider_exports<'a, P, F, Fut>(
    client: &'a WrpcClient,
    provider: P,
    shutdown: impl Future<Output = ()>,
    serve: F,
) -> Result<()>
where F: FnOnce(&'a WrpcClient, P) -> Fut, Fut: Future<Output = Result<InvocationStreams>> + Captures<'a>,
Expand description

Serve exports of the provider using the serve function generated by [wit-bindgen-wrpc]