register_backend

Function register_backend 

Source
pub fn register_backend(backend: impl RegisterBackend + Send + Sync + 'static)
Expand description

Registers a backend implementation for use with nyquest.

This function should be called once at the beginning of a program to set up the backend that will be used by all nyquest client operations.

Backend developers should create a type that implements:

ยงPanics

Panics if a backend has already been registered.