Trait tiny_tokio_actor::RetryStrategy[][src]

pub trait RetryStrategy: Debug + Send + Sync {
    fn max_retries(&self) -> usize;
fn next_backoff(&mut self) -> Option<Duration>; }
Expand description

Trait to define a RetryStrategy. You can use this trait to define your custom retry strategy.

Required methods

Maximum number of tries before permanently failing an actor

Wait duration before retrying

Implementors