Struct cs_utils::futures::WithRetriesOptions
source · [−]pub struct WithRetriesOptions<TError: Into<Box<dyn StdError + Send + Sync>> = BaseError> { /* private fields */ }Implementations
sourceimpl<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 = BaseError<String>> !RefUnwindSafe for WithRetriesOptions<TError>
impl<TError> Send for WithRetriesOptions<TError>
impl<TError = BaseError<String>> !Sync for WithRetriesOptions<TError>
impl<TError> Unpin for WithRetriesOptions<TError>
impl<TError = BaseError<String>> !UnwindSafe for WithRetriesOptions<TError>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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