Skip to main content

NeedsDbReconnect

Trait NeedsDbReconnect 

Source
pub trait NeedsDbReconnect:
    Error
    + Send
    + Sync {
    // Required method
    fn needs_db_reconnect(&self) -> bool;

    // Provided method
    fn restart_delay(&self) -> Option<Duration> { ... }
}

Required Methods§

Provided Methods§

Source

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).

Implementors§