pub struct RetryStrategyWrapper<T: RetryStrategyTrait> { /* private fields */ }Expand description
Wrapper to adapt RetryStrategyTrait to DynRetryStrategy
Implementations§
Source§impl<T: RetryStrategyTrait> RetryStrategyWrapper<T>
impl<T: RetryStrategyTrait> RetryStrategyWrapper<T>
Trait Implementations§
Source§impl<T: RetryStrategyTrait> DynRetryStrategy for RetryStrategyWrapper<T>
impl<T: RetryStrategyTrait> DynRetryStrategy for RetryStrategyWrapper<T>
Source§fn execute_json<'life0, 'life1, 'async_trait>(
&'life0 self,
operation: &'life1 str,
request: Value,
) -> Pin<Box<dyn Future<Output = Result<Value>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn execute_json<'life0, 'life1, 'async_trait>(
&'life0 self,
operation: &'life1 str,
request: Value,
) -> Pin<Box<dyn Future<Output = Result<Value>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Execute a JSON-RPC operation with retry logic
Source§fn should_retry(&self, error: &Error, context: &RetryContext) -> RetryDecision
fn should_retry(&self, error: &Error, context: &RetryContext) -> RetryDecision
Analyze error for retry decision
Source§fn stats(&self) -> RetryStats
fn stats(&self) -> RetryStats
Get retry statistics
Auto Trait Implementations§
impl<T> Freeze for RetryStrategyWrapper<T>where
T: Freeze,
impl<T> RefUnwindSafe for RetryStrategyWrapper<T>where
T: RefUnwindSafe,
impl<T> Send for RetryStrategyWrapper<T>
impl<T> Sync for RetryStrategyWrapper<T>
impl<T> Unpin for RetryStrategyWrapper<T>where
T: Unpin,
impl<T> UnsafeUnpin for RetryStrategyWrapper<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for RetryStrategyWrapper<T>where
T: UnwindSafe,
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
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more