fn take_handler() -> Box<Handler<Self>> {
        Self::handler().with(|handler| handler.take().unwrap_or_else(default_handler::<Self>))
    }
Get the handler for this event, replacing it with the default handler.
esp-wifi/src/wifi/event.rs