async fn with_retry_and_logging<C, F, T>(closure: C) -> Result<T, OpError>where
    F: Future<Output = Result<T, OpError>>,
    C: FnMut() -> F,
Expand description

Automatically retries the provided closure, if the error is retry-able, and traces failures appropriately.