Skip to main content

lumen_status_message

Function lumen_status_message 

Source
#[unsafe(no_mangle)]
pub extern "C" fn lumen_status_message( status: LumenStatus, ) -> *const c_char
Expand description

Returns a static, NUL-terminated UTF-8 description of status. Useful for log messages on a non-OK return without an lumen_last_error round-trip (which carries the thread-local context message instead of the status enum’s canonical name). The returned pointer lives for the program’s lifetime; callers must not free it.