pub struct TcpSession { /* private fields */ }
Implementations§
Source§impl TcpSession
impl TcpSession
pub fn upgrade(&mut self) -> bool
pub fn test_back_socket(&mut self) -> bool
pub fn cancel_timeouts(&mut self)
Trait Implementations§
Source§impl ProxySession for TcpSession
impl ProxySession for TcpSession
Source§fn close(&mut self)
fn close(&mut self)
close a session, frontend and backend sockets,
remove the entries from the session manager slab
Source§fn timeout(&mut self, token: Token) -> bool
fn timeout(&mut self, token: Token) -> bool
if a timeout associated with the session triggers, the event loop will
call this method with the timeout’s token
Source§fn update_readiness(&mut self, token: Token, events: Ready)
fn update_readiness(&mut self, token: Token, events: Ready)
if the event loop got an event for a token associated with the session,
it will call this method on the session
Source§fn ready(&mut self, session: Rc<RefCell<dyn ProxySession>>) -> bool
fn ready(&mut self, session: Rc<RefCell<dyn ProxySession>>) -> bool
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
Source§fn shutting_down(&mut self) -> bool
fn shutting_down(&mut self) -> bool
tell the session it has to shut down if possible Read more
Source§fn last_event(&self) -> Instant
fn last_event(&self) -> Instant
last time the session got an event
Source§fn print_session(&self)
fn print_session(&self)
display the session’s internal state (for debugging purpose)
Source§fn frontend_token(&self) -> Token
fn frontend_token(&self) -> Token
get the token associated with the frontend
Auto Trait Implementations§
impl !Freeze for TcpSession
impl !RefUnwindSafe for TcpSession
impl !Send for TcpSession
impl !Sync for TcpSession
impl Unpin for TcpSession
impl !UnwindSafe for TcpSession
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more