pub async fn reconnect_on_change<Func, Fut, Res, Retry, Cont>( func: Func, cont: Retry, ) -> Reswhere Func: Fn() -> Fut, Fut: Future<Output = Res>, Retry: Fn() -> Cont, Cont: Future<Output = Option<Res>>,
Re-attempts a request on network changes.