Skip to main content

RetryPredicate

Type Alias RetryPredicate 

Source
pub type RetryPredicate = Arc<dyn Fn(&str) -> bool + Send + Sync>;
Expand description

Retry behavior predicate type.

Receives the error message and returns true if the error is retryable.

Aliased Typeยง

pub struct RetryPredicate { /* private fields */ }