Struct junction_api::http::RouteRetry
source · pub struct RouteRetry {
pub codes: Vec<u32>,
pub attempts: Option<u32>,
pub backoff: Option<Duration>,
}
Expand description
Configure client retry policy.
Fields§
§codes: Vec<u32>
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.
Implementations§
Trait Implementations§
source§impl Clone for RouteRetry
impl Clone for RouteRetry
source§fn clone(&self) -> RouteRetry
fn clone(&self) -> RouteRetry
Returns a copy 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
source§impl TryFrom<&HTTPRouteRulesRetry> for RouteRetry
impl TryFrom<&HTTPRouteRulesRetry> for RouteRetry
source§impl TryFrom<&RouteRetry> for HTTPRouteRulesRetry
impl TryFrom<&RouteRetry> for HTTPRouteRulesRetry
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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 moresource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request