init

Function init 

Source
pub fn init(dispatcher: &'static dyn Dispatch) -> Result<(), SetDispatchError>
Expand description

Initializes the precept library with a static dispatcher reference.

This function sets up the global dispatcher, registers all catalog entries, and initializes faults. It should be called once at application startup.

Returns an error if a dispatcher has already been set.