pub struct RetryConfig<E> { /* private fields */ }Expand description
Configuration for the retry middleware.
Implementations§
Source§impl<E> RetryConfig<E>
impl<E> RetryConfig<E>
Sourcepub fn builder() -> RetryConfigBuilder<E>
pub fn builder() -> RetryConfigBuilder<E>
Creates a new builder for retry configuration.
Sourcepub fn layer(self) -> RetryLayer<E>
pub fn layer(self) -> RetryLayer<E>
Returns a layer that can be applied to a service.
Auto Trait Implementations§
impl<E> Freeze for RetryConfig<E>
impl<E> !RefUnwindSafe for RetryConfig<E>
impl<E> Send for RetryConfig<E>
impl<E> Sync for RetryConfig<E>
impl<E> Unpin for RetryConfig<E>
impl<E> UnsafeUnpin for RetryConfig<E>
impl<E> !UnwindSafe for RetryConfig<E>
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