pub type RetryIf = Arc<dyn Fn(&Failure, u32) -> bool + Send + Sync>;
Decides whether a failure may be retried, given the attempt that failed.
pub struct RetryIf { /* private fields */ }