Struct sozu_command_lib::proxy::LoadBalancingParams
source · [−]pub struct LoadBalancingParams {
pub weight: u8,
}
Fields
weight: u8
Trait Implementations
sourceimpl Clone for LoadBalancingParams
impl Clone for LoadBalancingParams
sourcefn clone(&self) -> LoadBalancingParams
fn clone(&self) -> LoadBalancingParams
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 LoadBalancingParams
impl Debug for LoadBalancingParams
sourceimpl Default for LoadBalancingParams
impl Default for LoadBalancingParams
sourceimpl<'de> Deserialize<'de> for LoadBalancingParams
impl<'de> Deserialize<'de> for LoadBalancingParams
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 LoadBalancingParams
impl Hash for LoadBalancingParams
sourceimpl Ord for LoadBalancingParams
impl Ord for LoadBalancingParams
sourcefn cmp(&self, other: &LoadBalancingParams) -> Ordering
fn cmp(&self, other: &LoadBalancingParams) -> 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<LoadBalancingParams> for LoadBalancingParams
impl PartialEq<LoadBalancingParams> for LoadBalancingParams
sourcefn eq(&self, other: &LoadBalancingParams) -> bool
fn eq(&self, other: &LoadBalancingParams) -> bool
sourceimpl PartialOrd<LoadBalancingParams> for LoadBalancingParams
impl PartialOrd<LoadBalancingParams> for LoadBalancingParams
sourcefn partial_cmp(&self, other: &LoadBalancingParams) -> Option<Ordering>
fn partial_cmp(&self, other: &LoadBalancingParams) -> 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 LoadBalancingParams
impl Serialize for LoadBalancingParams
impl Eq for LoadBalancingParams
impl StructuralEq for LoadBalancingParams
impl StructuralPartialEq for LoadBalancingParams
Auto Trait Implementations
impl RefUnwindSafe for LoadBalancingParams
impl Send for LoadBalancingParams
impl Sync for LoadBalancingParams
impl Unpin for LoadBalancingParams
impl UnwindSafe for LoadBalancingParams
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