Skip to main content

set_leak_reporter

Function set_leak_reporter 

pub fn set_leak_reporter(
    reporter: Option<Box<dyn Fn(NativeHandleLeak) + Sync + Send>>,
) -> bool
Expand description

Installs the process-wide reporter for handles a destructor could not destroy, replacing any previous one, and returns whether one was installed. Explicit close reports the same failure through the normal error path.