Skip to main content

LocalNeedsDbReconnect

Trait LocalNeedsDbReconnect 

Source
pub trait LocalNeedsDbReconnect: Error {
    // 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§

Source§

impl<TraitVariantBlanketType> LocalNeedsDbReconnect for TraitVariantBlanketType
where TraitVariantBlanketType: NeedsDbReconnect,