pub enum GeneralLoadBalancer<T>{
Interval(IntervalLoadBalancer<T>),
Limit(LimitLoadBalancer<T>),
Random(RandomLoadBalancer<T>),
Simple(SimpleLoadBalancer<T>),
Threshold(ThresholdLoadBalancer<T>),
}Variants§
Interval(IntervalLoadBalancer<T>)
Limit(LimitLoadBalancer<T>)
Random(RandomLoadBalancer<T>)
Simple(SimpleLoadBalancer<T>)
Threshold(ThresholdLoadBalancer<T>)
Implementations§
Source§impl<T> GeneralLoadBalancer<T>
impl<T> GeneralLoadBalancer<T>
pub fn as_interval(&self) -> &IntervalLoadBalancer<T>
pub fn as_limit(&self) -> &LimitLoadBalancer<T>
pub fn as_random(&self) -> &RandomLoadBalancer<T>
pub fn as_simple(&self) -> &SimpleLoadBalancer<T>
pub fn as_threshold(&self) -> &ThresholdLoadBalancer<T>
Trait Implementations§
Source§impl<T> BoxLoadBalancer<T> for GeneralLoadBalancer<T>
impl<T> BoxLoadBalancer<T> for GeneralLoadBalancer<T>
Source§impl<T> Clone for GeneralLoadBalancer<T>
impl<T> Clone for GeneralLoadBalancer<T>
Source§fn clone(&self) -> GeneralLoadBalancer<T>
fn clone(&self) -> GeneralLoadBalancer<T>
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 moreAuto Trait Implementations§
impl<T> Freeze for GeneralLoadBalancer<T>
impl<T> !RefUnwindSafe for GeneralLoadBalancer<T>
impl<T> Send for GeneralLoadBalancer<T>
impl<T> Sync for GeneralLoadBalancer<T>
impl<T> Unpin for GeneralLoadBalancer<T>
impl<T> !UnwindSafe for GeneralLoadBalancer<T>
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