Skip to main content

pamoja_reporter_snapshot

Function pamoja_reporter_snapshot 

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

Takes a snapshot of the counters to ship in place of the event stream.

§Arguments

  • reporter - the reporter.

§Returns

The snapshot, or an all-zero snapshot if reporter is null.

§Safety

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