pub struct WithRetriesOptions<TError: Into<Box<dyn StdError + Send + Sync>> = BaseError> { /* private fields */ }Implementations§
Source§impl<TError: Into<Box<dyn StdError + Send + Sync>>> WithRetriesOptions<TError>
impl<TError: Into<Box<dyn StdError + Send + Sync>>> WithRetriesOptions<TError>
pub fn retries(self, retries: usize) -> WithRetriesOptions<TError>
pub fn decrement_retries(&mut self)
pub fn retry_delay(self, retry_delay_ms: u64) -> WithRetriesOptions<TError>
pub fn should_stop_retries( self, should_stop_retries: impl Fn(&TError, usize) -> bool + Send + 'static, ) -> WithRetriesOptions<TError>
Trait Implementations§
Auto Trait Implementations§
impl<TError> Freeze for WithRetriesOptions<TError>
impl<TError = BaseError> !RefUnwindSafe for WithRetriesOptions<TError>
impl<TError> Send for WithRetriesOptions<TError>
impl<TError = BaseError> !Sync for WithRetriesOptions<TError>
impl<TError> Unpin for WithRetriesOptions<TError>
impl<TError = BaseError> !UnwindSafe for WithRetriesOptions<TError>
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