Trait sozu_lib::network::ProxySession [−][src]
pub trait ProxySession {
fn protocol(&self) -> Protocol;
fn ready(&mut self) -> SessionResult;
fn process_events(&mut self, token: Token, events: Ready);
fn close(&mut self, poll: &mut Poll) -> CloseResult;
fn close_backend(&mut self, token: Token, poll: &mut Poll);
fn timeout(
&self,
t: Token,
timer: &mut Timer<Token>,
front_timeout: &Duration
) -> SessionResult;
fn cancel_timeouts(&self, timer: &mut Timer<Token>);
fn last_event(&self) -> SteadyTime;
fn print_state(&self);
fn tokens(&self) -> Vec<Token>;
}Required Methods
fn protocol(&self) -> Protocol
fn ready(&mut self) -> SessionResult
fn process_events(&mut self, token: Token, events: Ready)
fn close(&mut self, poll: &mut Poll) -> CloseResult
fn close_backend(&mut self, token: Token, poll: &mut Poll)
fn timeout(
&self,
t: Token,
timer: &mut Timer<Token>,
front_timeout: &Duration
) -> SessionResult
&self,
t: Token,
timer: &mut Timer<Token>,
front_timeout: &Duration
) -> SessionResult
fn cancel_timeouts(&self, timer: &mut Timer<Token>)
fn last_event(&self) -> SteadyTime
fn print_state(&self)
fn tokens(&self) -> Vec<Token>
Implementors
impl ProxySession for sozu_lib::network::http::Sessionimpl ProxySession for sozu_lib::network::tcp::Sessionimpl ProxySession for ListenSessionimpl ProxySession for sozu_lib::network::https_rustls::session::Session