RetryPredicate

Trait RetryPredicate 

Source
pub trait RetryPredicate<Params> {
    // Required method
    fn test(&self, params: &Params) -> bool;

    // Provided method
    fn name(&self) -> &str { ... }
}

Required Methods§

Source

fn test(&self, params: &Params) -> bool

returns true if a retry; false otherwise Ref

Provided Methods§

Source

fn name(&self) -> &str

Trait Implementations§

Source§

impl<Params> Debug for dyn RetryPredicate<Params>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<Params> Debug for dyn RetryPredicate<Params> + Send

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<Params> Debug for dyn RetryPredicate<Params> + Send + Sync

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Implementors§

Source§

impl<Params> RetryPredicate<Params> for retry_predicate::predicates::AlwaysPredicate

Source§

impl<Params> RetryPredicate<Params> for retry_predicate::predicates::FnPredicate<Params>

Source§

impl<Params> RetryPredicate<Params> for retry_predicate::predicates::NeverPredicate