pub trait NeedsDbReconnect:
Error
+ Send
+ Sync {
// Required method
fn needs_db_reconnect(&self) -> bool;
// Provided method
fn restart_delay(&self) -> Option<Duration> { ... }
}Required Methods§
fn needs_db_reconnect(&self) -> bool
Provided Methods§
Sourcefn restart_delay(&self) -> Option<Duration>
fn restart_delay(&self) -> Option<Duration>
The least time to wait before restarting a worker that failed with this error: a rate-limit rejection’s delay (RATE-041).