Struct sozu_lib::network::http::ServerConfiguration [−][src]
pub struct ServerConfiguration { /* fields omitted */ }Methods
impl ServerConfiguration[src]
impl ServerConfigurationpub fn new(
config: HttpProxyConfiguration,
event_loop: &mut Poll,
pool: Rc<RefCell<Pool<BufferQueue>>>,
tcp_listener: Option<TcpListener>,
token: Token
) -> (ServerConfiguration, HashSet<Token>)[src]
pub fn new(
config: HttpProxyConfiguration,
event_loop: &mut Poll,
pool: Rc<RefCell<Pool<BufferQueue>>>,
tcp_listener: Option<TcpListener>,
token: Token
) -> (ServerConfiguration, HashSet<Token>)pub fn give_back_listener(&mut self) -> Option<TcpListener>[src]
pub fn give_back_listener(&mut self) -> Option<TcpListener>pub fn add_application(
&mut self,
application: Application,
event_loop: &mut Poll
)[src]
pub fn add_application(
&mut self,
application: Application,
event_loop: &mut Poll
)pub fn remove_application(&mut self, app_id: &str, event_loop: &mut Poll)[src]
pub fn remove_application(&mut self, app_id: &str, event_loop: &mut Poll)pub fn add_http_front(
&mut self,
http_front: HttpFront,
event_loop: &mut Poll
) -> Result<(), String>[src]
pub fn add_http_front(
&mut self,
http_front: HttpFront,
event_loop: &mut Poll
) -> Result<(), String>pub fn remove_http_front(
&mut self,
front: HttpFront,
event_loop: &mut Poll
) -> Result<(), String>[src]
pub fn remove_http_front(
&mut self,
front: HttpFront,
event_loop: &mut Poll
) -> Result<(), String>pub fn add_backend(
&mut self,
app_id: &str,
backend_id: &str,
backend_address: &SocketAddr,
sticky_id: Option<String>,
load_balancing_parameters: Option<LoadBalancingParams>,
event_loop: &mut Poll
)[src]
pub fn add_backend(
&mut self,
app_id: &str,
backend_id: &str,
backend_address: &SocketAddr,
sticky_id: Option<String>,
load_balancing_parameters: Option<LoadBalancingParams>,
event_loop: &mut Poll
)pub fn remove_backend(
&mut self,
app_id: &str,
backend_address: &SocketAddr,
event_loop: &mut Poll
)[src]
pub fn remove_backend(
&mut self,
app_id: &str,
backend_address: &SocketAddr,
event_loop: &mut Poll
)pub fn frontend_from_request(&self, host: &str, uri: &str) -> Option<&HttpFront>[src]
pub fn frontend_from_request(&self, host: &str, uri: &str) -> Option<&HttpFront>pub fn backend_from_app_id(
&mut self,
client: &mut Client,
app_id: &str,
front_should_stick: bool
) -> Result<TcpStream, ConnectionError>[src]
pub fn backend_from_app_id(
&mut self,
client: &mut Client,
app_id: &str,
front_should_stick: bool
) -> Result<TcpStream, ConnectionError>pub fn backend_from_sticky_session(
&mut self,
client: &mut Client,
app_id: &str,
sticky_session: String
) -> Result<TcpStream, ConnectionError>[src]
pub fn backend_from_sticky_session(
&mut self,
client: &mut Client,
app_id: &str,
sticky_session: String
) -> Result<TcpStream, ConnectionError>Trait Implementations
impl ProxyConfiguration<Client> for ServerConfiguration[src]
impl ProxyConfiguration<Client> for ServerConfigurationfn connect_to_backend(
&mut self,
poll: &mut Poll,
client: &mut Client,
back_token: Token
) -> Result<BackendConnectAction, ConnectionError>[src]
fn connect_to_backend(
&mut self,
poll: &mut Poll,
client: &mut Client,
back_token: Token
) -> Result<BackendConnectAction, ConnectionError>fn notify(
&mut self,
event_loop: &mut Poll,
message: OrderMessage
) -> OrderMessageAnswer[src]
fn notify(
&mut self,
event_loop: &mut Poll,
message: OrderMessage
) -> OrderMessageAnswerfn accept(
&mut self,
token: ListenToken,
poll: &mut Poll,
client_token: Token
) -> Result<(Rc<RefCell<Client>>, bool), AcceptError>[src]
fn accept(
&mut self,
token: ListenToken,
poll: &mut Poll,
client_token: Token
) -> Result<(Rc<RefCell<Client>>, bool), AcceptError>fn accept_flush(&mut self) -> usize[src]
fn accept_flush(&mut self) -> usizefn close_backend(&mut self, app_id: String, addr: &SocketAddr)[src]
fn close_backend(&mut self, app_id: String, addr: &SocketAddr)fn listen_port_state(&self, port: &u16) -> ListenPortState[src]
fn listen_port_state(&self, port: &u16) -> ListenPortStateAuto Trait Implementations
impl !Send for ServerConfiguration
impl !Send for ServerConfigurationimpl !Sync for ServerConfiguration
impl !Sync for ServerConfiguration