Type Definition rants::DelayGenerator[][src]

pub type DelayGenerator = Box<dyn Fn(&Client, u64, u64) -> Duration + Send>;
Expand description

The type of a Client’s delay_generator_mut

Arguments

  • client - A reference to the Client that is trying to connect
  • attempts - The number of previous connect attempts
  • addresses - The number of addresses the Client is aware of