pub struct RetryMiddleware { /* private fields */ }Expand description
Implementations§
Source§impl RetryMiddleware
impl RetryMiddleware
Sourcepub fn new(config: RetryConfig) -> Self
pub fn new(config: RetryConfig) -> Self
Create a new retry middleware with the given config.
Sourcepub fn default_config() -> Self
pub fn default_config() -> Self
Create with default configuration.
Sourcepub fn config(&self) -> &RetryConfig
pub fn config(&self) -> &RetryConfig
Get the retry configuration.
Trait Implementations§
Source§impl Default for RetryMiddleware
impl Default for RetryMiddleware
Source§impl Middleware for RetryMiddleware
impl Middleware for RetryMiddleware
Source§fn handle<'a>(
&'a self,
ctx: QueryContext,
next: Next<'a>,
) -> BoxFuture<'a, MiddlewareResult<QueryResponse>>
fn handle<'a>( &'a self, ctx: QueryContext, next: Next<'a>, ) -> BoxFuture<'a, MiddlewareResult<QueryResponse>>
Handle a query, optionally calling the next handler.
Auto Trait Implementations§
impl Freeze for RetryMiddleware
impl RefUnwindSafe for RetryMiddleware
impl Send for RetryMiddleware
impl Sync for RetryMiddleware
impl Unpin for RetryMiddleware
impl UnwindSafe for RetryMiddleware
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more