Enum sozu_command_lib::proxy::LoadMetric
source · [−]pub enum LoadMetric {
Connections,
Requests,
ConnectionTime,
}
Expand description
how sozu measures which backend is less loaded
Variants
Connections
number of TCP connections
Requests
number of active HTTP requests
ConnectionTime
time to connect to the backend, weighted by the number of active connections (peak EWMA)
Trait Implementations
sourceimpl Clone for LoadMetric
impl Clone for LoadMetric
sourcefn clone(&self) -> LoadMetric
fn clone(&self) -> LoadMetric
Returns a copy of the value. Read more
1.0.0 · sourceconst fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for LoadMetric
impl Debug for LoadMetric
sourceimpl<'de> Deserialize<'de> for LoadMetric
impl<'de> Deserialize<'de> for LoadMetric
sourcefn 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
sourceimpl Hash for LoadMetric
impl Hash for LoadMetric
sourceimpl Ord for LoadMetric
impl Ord for LoadMetric
sourcefn cmp(&self, other: &LoadMetric) -> Ordering
fn cmp(&self, other: &LoadMetric) -> Ordering
1.21.0 · sourceconst fn max(self, other: Self) -> Self
const fn max(self, other: Self) -> Self
Compares and returns the maximum of two values. Read more
1.21.0 · sourceconst fn min(self, other: Self) -> Self
const fn min(self, other: Self) -> Self
Compares and returns the minimum of two values. Read more
1.50.0 · sourceconst fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
const fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
Restrict a value to a certain interval. Read more
sourceimpl PartialEq<LoadMetric> for LoadMetric
impl PartialEq<LoadMetric> for LoadMetric
sourcefn eq(&self, other: &LoadMetric) -> bool
fn eq(&self, other: &LoadMetric) -> bool
sourceimpl PartialOrd<LoadMetric> for LoadMetric
impl PartialOrd<LoadMetric> for LoadMetric
sourcefn partial_cmp(&self, other: &LoadMetric) -> Option<Ordering>
fn partial_cmp(&self, other: &LoadMetric) -> Option<Ordering>
1.0.0 · sourceconst fn le(&self, other: &Rhs) -> bool
const fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresourceimpl Serialize for LoadMetric
impl Serialize for LoadMetric
impl Copy for LoadMetric
impl Eq for LoadMetric
impl StructuralEq for LoadMetric
impl StructuralPartialEq for LoadMetric
Auto Trait Implementations
impl RefUnwindSafe for LoadMetric
impl Send for LoadMetric
impl Sync for LoadMetric
impl Unpin for LoadMetric
impl UnwindSafe for LoadMetric
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more