relay_category_unit_parse

Function relay_category_unit_parse 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn relay_category_unit_parse( name: *const RelayStr, ) -> i8
Expand description

Parses a CategoryUnit from its API name.

Returns the unit value (0=Count, 1=Bytes, 2=Milliseconds) or -1 for invalid/unknown names.