pub trait RetryThrottler:
Send
+ Sync
+ Debug { }Expand description
Implementations of this trait prevent a client from sending too many retries.
Retry throttlers are shared by all the requests in a client, and may even be shared by multiple clients. The library provides a default implementation (and instance) on each client. The application may choose a different implementation or instance if the default is not suitable.
Implementations of this trait must also implement Debug
because the application may need to log the client state. The trait is
passed between async functions, so its implementations must be Send
and Sync.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".