#[repr(C)]
pub struct aws_exponential_backoff_retry_options { pub el_group: *mut aws_event_loop_group, pub max_retries: usize, pub backoff_scale_factor_ms: u32, pub jitter_mode: aws_exponential_backoff_jitter_mode, pub generate_random: Option<unsafe extern "C" fn() -> u64>, }
Expand description

Options for exponential backoff retry strategy. el_group must be set, any other option, if set to 0 will signify “use defaults”

Fields

el_group: *mut aws_event_loop_group

Event loop group to use for scheduling tasks.

max_retries: usize

Max retries to allow. The default value is 10

backoff_scale_factor_ms: u32

Scaling factor to add for the backoff. Default is 25ms

jitter_mode: aws_exponential_backoff_jitter_mode

Jitter mode to use, see comments for aws_exponential_backoff_jitter_mode. Default is AWS_EXPONENTIAL_BACKOFF_JITTER_DEFAULT

generate_random: Option<unsafe extern "C" fn() -> u64>

By default this will be set to use aws_device_random. If you want something else, set it here.

Trait Implementations

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Returns the “default value” for a type. Read more
This method tests for self and other values to be equal, and is used by ==. Read more
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.