pub enum ThroughputThreshold {
Simple(f64),
Percentile(PercentileThresholds),
}Expand description
Throughput threshold configuration with percentile support.
Endpoints not meeting the threshold are deprioritized (moved later), not excluded.
Variants§
Simple(f64)
Simple threshold in tokens/sec
Percentile(PercentileThresholds)
Percentile-based thresholds
Trait Implementations§
Source§impl Clone for ThroughputThreshold
impl Clone for ThroughputThreshold
Source§fn clone(&self) -> ThroughputThreshold
fn clone(&self) -> ThroughputThreshold
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 ThroughputThreshold
impl Debug for ThroughputThreshold
Source§impl<'de> Deserialize<'de> for ThroughputThreshold
impl<'de> Deserialize<'de> for ThroughputThreshold
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<ThroughputThreshold, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ThroughputThreshold, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for ThroughputThreshold
impl PartialEq for ThroughputThreshold
Source§impl Serialize for ThroughputThreshold
impl Serialize for ThroughputThreshold
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for ThroughputThreshold
Auto Trait Implementations§
impl Freeze for ThroughputThreshold
impl RefUnwindSafe for ThroughputThreshold
impl Send for ThroughputThreshold
impl Sync for ThroughputThreshold
impl Unpin for ThroughputThreshold
impl UnsafeUnpin for ThroughputThreshold
impl UnwindSafe for ThroughputThreshold
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