pub trait ReconnectBackoff {
// Required method
fn reconnect_backoff(&mut self, reconnection_attempt: u32) -> Duration;
}Expand description
Calculates backoff duration between socket reconnection attempts.
Required Methods§
Sourcefn reconnect_backoff(&mut self, reconnection_attempt: u32) -> Duration
fn reconnect_backoff(&mut self, reconnection_attempt: u32) -> Duration
Returns the backoff duration to wait before the next reconnection attempt.