overnet_core

Function set_proxy_drop_event_handler

Source
pub fn set_proxy_drop_event_handler(
    handler: impl Fn(&Result<(), Error>) + 'static + Send,
)
Expand description

Sets a global callback to call every time a proxy is dropped. It’s given a reference to the error and can be used to send metrics events.