pub fn retry<F, T, E, P>( op: F, attempts: u32, delay: Duration, policy: P, ) -> Result<T, E>where F: FnMut() -> Result<T, E>, P: Fn(&E) -> bool,