Skip to main content

pamoja_reporter_adapt_to

Function pamoja_reporter_adapt_to 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn pamoja_reporter_adapt_to( reporter: *mut PamojaReporter, cost: PamojaLinkCost, )
Expand description

Moves the threshold to match what the link now costs.

§Arguments

  • reporter - the reporter.
  • cost - what the link currently costs.

§Safety

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