Struct sozu_lib::server::ListenSession
source · pub struct ListenSession {
pub protocol: Protocol,
}
Fields§
§protocol: Protocol
Trait Implementations§
source§impl ProxySession for ListenSession
impl ProxySession for ListenSession
source§fn last_event(&self) -> Instant
fn last_event(&self) -> Instant
last time the session got an event
source§fn print_state(&self)
fn print_state(&self)
displays the session’s internal state (for debugging purpose)
source§fn ready(&mut self, _session: Rc<RefCell<dyn ProxySession>>)
fn ready(&mut self, _session: Rc<RefCell<dyn ProxySession>>)
if a session received an event or can still execute, the event loop will
call this method. Its result indicates if it can still execute, needs to
connect to a backend server, close the session Read more
source§fn shutting_down(&mut self)
fn shutting_down(&mut self)
tells the session to shut down if possible Read more