pub fn init_boxed(dispatcher: Box<dyn Dispatch>) -> Result<(), SetDispatchError>Expand description
Initializes the precept library with a boxed dispatcher.
This is a convenience wrapper around init that accepts a boxed dispatcher.
The box is leaked to create a static reference.
Returns an error if a dispatcher has already been set.