relay_data_category_unit

Function relay_data_category_unit 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn relay_data_category_unit( category: DataCategory, ) -> i8
Expand description

Returns the CategoryUnit for a given DataCategory.

Returns the unit value (0=Count, 1=Bytes, 2=Milliseconds) or -1 if the category has no defined unit (e.g., DataCategory::Unknown).