[][src]Trait sozu_lib::ProxySession

pub trait ProxySession {
    pub fn protocol(&self) -> Protocol;
pub fn ready(&mut self) -> SessionResult;
pub fn process_events(&mut self, token: Token, events: Ready);
pub fn close(&mut self, poll: &mut Poll) -> CloseResult;
pub fn close_backend(&mut self, token: Token, poll: &mut Poll);
pub fn timeout(
        &mut self,
        t: Token,
        timer: &mut Timer<Token>,
        front_timeout: &Duration
    ) -> SessionResult;
pub fn cancel_timeouts(&self, timer: &mut Timer<Token>);
pub fn last_event(&self) -> SteadyTime;
pub fn print_state(&self);
pub fn tokens(&self) -> Vec<Token>;
pub fn shutting_down(&mut self) -> SessionResult; }

Required methods

pub fn protocol(&self) -> Protocol[src]

pub fn ready(&mut self) -> SessionResult[src]

pub fn process_events(&mut self, token: Token, events: Ready)[src]

pub fn close(&mut self, poll: &mut Poll) -> CloseResult[src]

pub fn close_backend(&mut self, token: Token, poll: &mut Poll)[src]

pub fn timeout(
    &mut self,
    t: Token,
    timer: &mut Timer<Token>,
    front_timeout: &Duration
) -> SessionResult
[src]

pub fn cancel_timeouts(&self, timer: &mut Timer<Token>)[src]

pub fn last_event(&self) -> SteadyTime[src]

pub fn print_state(&self)[src]

pub fn tokens(&self) -> Vec<Token>[src]

pub fn shutting_down(&mut self) -> SessionResult[src]

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...