Struct garcon::DelayBuilder [−][src]
pub struct DelayBuilder { /* fields omitted */ }
Implementations
impl DelayBuilder
[src]
impl DelayBuilder
[src]pub fn with(self, other: Delay) -> Self
[src]
pub fn with(self, other: Delay) -> Self
[src]Add a delay to the current builder. If a builder implements multiple delays, they will run sequentially, so if you have 2 Throttle delays, they will wait one after the other. This composer can be used though with a Throttle and a Timeout to throttle a thread, and error out if it throttles too long.
pub fn timeout(self, timeout: Duration) -> Self
[src]
pub fn throttle(self, throttle: Duration) -> Self
[src]
pub fn exponential_backoff(self, initial: Duration, multiplier: f32) -> Self
[src]
pub fn exponential_backoff_capped(
self,
initial: Duration,
multiplier: f32,
cap: Duration
) -> Self
[src]
self,
initial: Duration,
multiplier: f32,
cap: Duration
) -> Self
pub fn side_effect<F>(self, function: F) -> Self where
F: 'static + Sync + Send + Clone + Fn() -> Result<(), WaiterError>,
[src]
F: 'static + Sync + Send + Clone + Fn() -> Result<(), WaiterError>,