Function reconnect_on_change

Source
pub async fn reconnect_on_change<Func, Fut, Res, Retry, Cont>(
    func: Func,
    cont: Retry,
) -> Res
where Func: Fn() -> Fut, Fut: Future<Output = Res>, Retry: Fn() -> Cont, Cont: Future<Output = Option<Res>>,
Expand description

Re-attempts a request on network changes.