Skip to main content

set_global_provider

Function set_global_provider 

Source
pub fn set_global_provider(provider: Arc<ServiceProvider>)
👎Deprecated since 0.2.0:

Use Host::provider() or dispatch_provider() within an active DispatchRuntime

Expand description

Deprecated shim: set a process-wide ServiceProvider fallback.

Host::build() no longer calls this. Prefer Host::provider() or run work inside Host::dispatch_runtime().run() so dispatch_provider() resolves from the active runtime.