fn set_event_handler_inner( handler: Box<dyn Fn(Event<'_>) + Send + 'static>, ) -> Result<()>
there is no replacement, use hostapd and wpa_supplicant directly