pub enum LoadBalanceType {
Round,
Random,
Hash,
MinConnect,
}Expand description
an load balance type.
Variants§
Round
RPC clients take turns to execute
Random
RPC clients random pick one
Hash
RPC clients pick one by address’s hashcode,so client_ip with client that is matches in pairs
MinConnect
RPC clients pick on by Has the minimum number of TCP connections
Trait Implementations§
Source§impl Clone for LoadBalanceType
impl Clone for LoadBalanceType
Source§fn clone(&self) -> LoadBalanceType
fn clone(&self) -> LoadBalanceType
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 LoadBalanceType
impl Debug for LoadBalanceType
impl Copy for LoadBalanceType
Auto Trait Implementations§
impl Freeze for LoadBalanceType
impl RefUnwindSafe for LoadBalanceType
impl Send for LoadBalanceType
impl Sync for LoadBalanceType
impl Unpin for LoadBalanceType
impl UnwindSafe for LoadBalanceType
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