set_retries

Function set_retries 

Source
pub fn set_retries(retries: u8)
Expand description

Sets the number of retries for operations that may fail and need to be retried.

This function stores the specified number of retries in an atomic variable, which can be safely shared across threads. This is used by the retry! macro to automatically retry all requests.

§Arguments

  • retries - The number of retries to set.

§Example

s3::set_retries(3);