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.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".