Skip to main content

SharedRetryThrottler

Type Alias SharedRetryThrottler 

Source
pub type SharedRetryThrottler = Arc<Mutex<dyn RetryThrottler>>;
Expand description

Retry throttlers are shared by many clients, so they are wrapped in Arc<>. Consequently, they are used from many threads at the same time, so they are wrapped in Mutex.

Aliased Type§

pub struct SharedRetryThrottler { /* private fields */ }

Trait Implementations§

Source§

impl From<RetryThrottlerArg> for SharedRetryThrottler

Source§

fn from(value: RetryThrottlerArg) -> SharedRetryThrottler

Converts to this type from the input type.