[][src]Trait sozu_lib::retry::RetryPolicy

pub trait RetryPolicy: Debug + PartialEq + Eq {
    fn max_tries(&self) -> usize;
fn current_tries(&self) -> usize;
fn fail(&mut self);
fn succeed(&mut self);
fn is_down(&self) -> bool; fn can_try(&self) -> Option<RetryAction> { ... } }

Required methods

fn max_tries(&self) -> usize

fn current_tries(&self) -> usize

fn fail(&mut self)

fn succeed(&mut self)

fn is_down(&self) -> bool

Loading content...

Provided methods

fn can_try(&self) -> Option<RetryAction>

Loading content...

Implementors

impl RetryPolicy for RetryPolicyWrapper[src]

impl RetryPolicy for ExponentialBackoffPolicy[src]

Loading content...