shadowsocks-rust 1.3.2

shadowsocks is a fast tunnel proxy that helps you bypass firewalls.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
//! Load balancer for picking servers

use std::rc::Rc;

pub use self::roundrobin::RoundRobin;

use config::ServerConfig;

pub mod roundrobin;

pub trait LoadBalancer {
    fn pick_server(&mut self) -> Rc<ServerConfig>;
    fn total(&self) -> usize;
}