pub fn register_global_runtime_component(
component: Arc<dyn RuntimeComponent>,
) -> Result<(), RuntimeRegistrationError>Expand description
Register a host-defined runtime component.
Call once per component at process startup, before any
Client operates on a group that may carry this component.
Returns Err(OutOfRange) if the id is outside 0xC000-0xFEFF,
Err(AlreadyRegistered) if a different impl is already
registered for the same id.
The component lives for the process lifetime — there is no
unregister. Hosts that need to swap impls should restart.