Skip to main content

RetryAfterExtractor

Type Alias RetryAfterExtractor 

Source
pub type RetryAfterExtractor<E> = Box<dyn Fn(&E) -> Option<Duration> + Send + Sync>;
Expand description

An optional closure that extracts an explicit retry-after delay hint from an error value. Used by crate::retry::Retry::retry_after.

Aliased Typeยง

pub struct RetryAfterExtractor<E>(/* private fields */);