[][src]Trait sozu_lib::ProxySession

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(
        &mut 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>;
fn shutting_down(&mut self) -> SessionResult; }

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(
    &mut 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>

fn shutting_down(&mut self) -> SessionResult

Loading content...

Implementors

impl ProxySession for sozu_lib::http::Session[src]

impl ProxySession for sozu_lib::https_rustls::session::Session[src]

impl ProxySession for ListenSession[src]

impl ProxySession for sozu_lib::tcp::Session[src]

Loading content...