Module provider

Module provider 

Source

Structs§

ProviderCommandReceivers
ProviderConnection
WrpcClient

Functions§

get_connection
Retrieves the currently configured connection to the lattice. DO NOT call this method until after the provider is running (meaning run_provider has been called) or this method will panic. Only in extremely rare cases should this be called manually and it will only be used by generated code
handle_provider_commands
Handle provider commands in a loop.
initialize_host_data
Initializes the host data with the provided data. This is useful for testing or if the host data is not being provided over stdin.
invocation_context
Extracts trace context from incoming headers
load_host_data
Loads configuration data sent from the host over stdin. The returned host data contains all the configuration information needed to connect to the lattice and any additional configuration provided to this provider (like config_json).
receive_link_for_provider
Appropriately receive a link (depending on if it’s source/target) for a provider
run_provider
Runs the provider handler given a provider implementation and a name. It returns a Future, which will become ready once shutdown signal is received.
serve_provider_exports
Serve exports of the provider using the serve function generated by [wit-bindgen-wrpc]

Type Aliases§

InvocationStreams
This is the type returned by the serve function generated by [wit-bindgen-wrpc]
QuitSignal