Struct sozu_lib::network::session::Session
[−]
[src]
pub struct Session<ServerConfiguration, Client> { /* fields omitted */ }
Methods
impl<ServerConfiguration: ProxyConfiguration<Client>, Client: ProxyClient> Session<ServerConfiguration, Client>
[src]
fn new(max_listeners: usize,
max_connections: usize,
base_token: usize,
configuration: ServerConfiguration,
poll: &mut Poll)
-> Self
max_connections: usize,
base_token: usize,
configuration: ServerConfiguration,
poll: &mut Poll)
-> Self
fn to_front(&self, token: Token) -> FrontToken
fn to_back(&self, token: Token) -> BackToken
fn from_front(&self, token: FrontToken) -> Token
fn from_back(&self, token: BackToken) -> Token
fn configuration(&mut self) -> &mut ServerConfiguration
fn close_client(&mut self, poll: &mut Poll, token: FrontToken)
fn close_backend(&mut self, token: FrontToken)
fn accept(&mut self, poll: &mut Poll, token: ListenToken) -> bool
fn connect_to_backend(&mut self, poll: &mut Poll, token: FrontToken)
fn get_client_token(&self, token: Token) -> Option<FrontToken>
fn interpret_client_order(&mut self,
poll: &mut Poll,
token: FrontToken,
order: ClientResult)
poll: &mut Poll,
token: FrontToken,
order: ClientResult)