pub struct RouteRetry {
pub codes: Vec<u16>,
pub attempts: Option<u32>,
pub backoff: Option<Duration>,
}
Expand description
Configure client retry policy.
Fields§
§codes: Vec<u16>
The HTTP error codes that retries should be applied to.
attempts: Option<u32>
The total number of attempts to make when retrying this request.
backoff: Option<Duration>
The amount of time to back off between requests during a series of retries.
Trait Implementations§
Source§impl Clone for RouteRetry
impl Clone for RouteRetry
Source§fn clone(&self) -> RouteRetry
fn clone(&self) -> RouteRetry
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for RouteRetry
impl Debug for RouteRetry
Source§impl Default for RouteRetry
impl Default for RouteRetry
Source§fn default() -> RouteRetry
fn default() -> RouteRetry
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for RouteRetry
impl<'de> Deserialize<'de> for RouteRetry
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for RouteRetry
impl PartialEq for RouteRetry
Source§impl Serialize for RouteRetry
impl Serialize for RouteRetry
impl Eq for RouteRetry
impl StructuralPartialEq for RouteRetry
Auto Trait Implementations§
impl Freeze for RouteRetry
impl RefUnwindSafe for RouteRetry
impl Send for RouteRetry
impl Sync for RouteRetry
impl Unpin for RouteRetry
impl UnwindSafe for RouteRetry
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