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:
AsyncBackendtrait if theasyncfeature is enabledBlockingBackendtrait if theblockingfeature is enabled
ยงPanics
Panics if a backend has already been registered.