Struct shadowsocks_service::local::loadbalancing::ping_balancer::PingBalancer [−][src]
pub struct PingBalancer { /* fields omitted */ }
Expand description
Balancer with active probing
Implementations
Get service context
Pick the best TCP server
Pick the best UDP server
pub fn servers(&self) -> PingServerIter<'_>ⓘNotable traits for PingServerIter<'a>impl<'a> Iterator for PingServerIter<'a> type Item = &'a ServerIdent;
pub fn servers(&self) -> PingServerIter<'_>ⓘNotable traits for PingServerIter<'a>impl<'a> Iterator for PingServerIter<'a> type Item = &'a ServerIdent;
Notable traits for PingServerIter<'a>
impl<'a> Iterator for PingServerIter<'a> type Item = &'a ServerIdent;
Get the server list
Reset servers in load balancer. Designed for auto-reloading configuration file.
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for PingBalancer
impl Send for PingBalancer
impl Sync for PingBalancer
impl Unpin for PingBalancer
impl !UnwindSafe for PingBalancer
Blanket Implementations
Mutably borrows from an owned value. Read more
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more