#[non_exhaustive]pub struct RetryConfig { /* private fields */ }Available on crate feature
token-based-authentication only.Expand description
Configuration for handling failed token refresh attempts
Implementations§
Source§impl RetryConfig
impl RetryConfig
Sourcepub fn set_number_of_retries(self, number_of_retries: usize) -> Self
pub fn set_number_of_retries(self, number_of_retries: usize) -> Self
Sets the maximum number of retry attempts for token refresh
Sourcepub fn set_min_delay(self, min_delay: Duration) -> Self
pub fn set_min_delay(self, min_delay: Duration) -> Self
Sets the minimal delay before attempting to refresh the token after a failure
Sourcepub fn set_max_delay(self, max_delay: Duration) -> Self
pub fn set_max_delay(self, max_delay: Duration) -> Self
Sets the upper bound for retry delays
Sourcepub fn set_exponent_base(self, exponent_base: f32) -> Self
pub fn set_exponent_base(self, exponent_base: f32) -> Self
Sets the base for exponential backoff
Trait Implementations§
Source§impl Clone for RetryConfig
impl Clone for RetryConfig
Source§fn clone(&self) -> RetryConfig
fn clone(&self) -> RetryConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RetryConfig
impl Debug for RetryConfig
Auto Trait Implementations§
impl Freeze for RetryConfig
impl RefUnwindSafe for RetryConfig
impl Send for RetryConfig
impl Sync for RetryConfig
impl Unpin for RetryConfig
impl UnsafeUnpin for RetryConfig
impl UnwindSafe for RetryConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more