pub struct RetryStrategy { /* private fields */ }Expand description
Retry strategy executor.
Implementations§
Source§impl RetryStrategy
impl RetryStrategy
Sourcepub fn new(config: RetryConfig) -> Self
pub fn new(config: RetryConfig) -> Self
Create a new retry strategy with the given configuration.
Sourcepub fn config(&self) -> &RetryConfig
pub fn config(&self) -> &RetryConfig
Get a reference to the configuration.
Sourcepub fn config_mut(&mut self) -> &mut RetryConfig
pub fn config_mut(&mut self) -> &mut RetryConfig
Get a mutable reference to the configuration.
Trait Implementations§
Source§impl From<RetryConfig> for RetryStrategy
impl From<RetryConfig> for RetryStrategy
Source§fn from(config: RetryConfig) -> Self
fn from(config: RetryConfig) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for RetryStrategy
impl RefUnwindSafe for RetryStrategy
impl Send for RetryStrategy
impl Sync for RetryStrategy
impl Unpin for RetryStrategy
impl UnsafeUnpin for RetryStrategy
impl UnwindSafe for RetryStrategy
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