#[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
sourceimpl Clone for aws_exponential_backoff_retry_options
impl Clone for aws_exponential_backoff_retry_options
sourcefn clone(&self) -> aws_exponential_backoff_retry_options
fn clone(&self) -> aws_exponential_backoff_retry_options
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl PartialEq<aws_exponential_backoff_retry_options> for aws_exponential_backoff_retry_options
impl PartialEq<aws_exponential_backoff_retry_options> for aws_exponential_backoff_retry_options
sourcefn eq(&self, other: &aws_exponential_backoff_retry_options) -> bool
fn eq(&self, other: &aws_exponential_backoff_retry_options) -> bool
impl Copy for aws_exponential_backoff_retry_options
impl Eq for aws_exponential_backoff_retry_options
impl StructuralEq for aws_exponential_backoff_retry_options
impl StructuralPartialEq for aws_exponential_backoff_retry_options
Auto Trait Implementations
impl RefUnwindSafe for aws_exponential_backoff_retry_options
impl !Send for aws_exponential_backoff_retry_options
impl !Sync for aws_exponential_backoff_retry_options
impl Unpin for aws_exponential_backoff_retry_options
impl UnwindSafe for aws_exponential_backoff_retry_options
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more