pub struct BalancerConfig {
pub max_server_rtt: Option<Duration>,
pub check_interval: Option<Duration>,
pub check_best_interval: Option<Duration>,
}Expand description
Balancer Config
Fields§
§max_server_rtt: Option<Duration>MAX rtt of servers, which is the timeout duration of each check requests
check_interval: Option<Duration>Interval between each checking
check_best_interval: Option<Duration>Interval for checking the best server
Trait Implementations§
Source§impl Clone for BalancerConfig
impl Clone for BalancerConfig
Source§fn clone(&self) -> BalancerConfig
fn clone(&self) -> BalancerConfig
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 BalancerConfig
impl Debug for BalancerConfig
Source§impl Default for BalancerConfig
impl Default for BalancerConfig
Source§fn default() -> BalancerConfig
fn default() -> BalancerConfig
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for BalancerConfig
impl RefUnwindSafe for BalancerConfig
impl Send for BalancerConfig
impl Sync for BalancerConfig
impl Unpin for BalancerConfig
impl UnwindSafe for BalancerConfig
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