pub fn make_network_handler( log: NetworkLog, ) -> impl FnMut(Event) -> Pin<Box<dyn Future<Output = ()> + Send>>