Skip to main content

get_or_init

Function get_or_init 

Source
pub fn get_or_init() -> &'static Mutex<CompileTimeDb>
Expand description

Returns a reference to the global Mutex<CompileTimeDb>, initializing it on the first call.

ยงPanics

Panics if Hyper fails to start (e.g. HYPERD_PATH is invalid or the binary is absent). The error is surfaced as a compile_error! by the calling macro.