pub struct PercentileSpeculativeExecutionPolicy {
pub max_retry_count: usize,
pub percentile: f64,
}Expand description
A policy that triggers speculative executions when the request to the current host is above a given percentile.
Fields§
§max_retry_count: usizeThe maximum number of speculative executions that will be triggered for a given request (does not include the initial request)
percentile: f64The percentile that a request’s latency must fall into to be considered slow (ex: 99.0)
Trait Implementations§
Source§impl Clone for PercentileSpeculativeExecutionPolicy
impl Clone for PercentileSpeculativeExecutionPolicy
Source§fn clone(&self) -> PercentileSpeculativeExecutionPolicy
fn clone(&self) -> PercentileSpeculativeExecutionPolicy
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 SpeculativeExecutionPolicy for PercentileSpeculativeExecutionPolicy
impl SpeculativeExecutionPolicy for PercentileSpeculativeExecutionPolicy
Source§fn max_retry_count(&self, _: &Context) -> usize
fn max_retry_count(&self, _: &Context) -> usize
The maximum number of speculative executions that will be triggered
for a given request (does not include the initial request)
Source§fn retry_interval(&self, context: &Context) -> Duration
fn retry_interval(&self, context: &Context) -> Duration
The delay between each speculative execution
Auto Trait Implementations§
impl Freeze for PercentileSpeculativeExecutionPolicy
impl RefUnwindSafe for PercentileSpeculativeExecutionPolicy
impl Send for PercentileSpeculativeExecutionPolicy
impl Sync for PercentileSpeculativeExecutionPolicy
impl Unpin for PercentileSpeculativeExecutionPolicy
impl UnwindSafe for PercentileSpeculativeExecutionPolicy
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§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