Skip to main content

pamoja_reporter_threshold

Function pamoja_reporter_threshold 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn pamoja_reporter_threshold( reporter: *const PamojaReporter, ) -> PamojaTelemetryLevel
Expand description

Returns the level a reporter is currently shipping from.

§Arguments

  • reporter - the reporter.

§Returns

The threshold, or PamojaTelemetryLevel::Trace if reporter is null.

§Safety

reporter must be a live handle from pamoja_reporter_new, or null.