pub struct HttpsSession { /* private fields */ }
Implementations§
Source§impl HttpsSession
impl HttpsSession
pub fn new( answers: Rc<RefCell<HttpAnswers>>, configured_backend_timeout: Duration, configured_connect_timeout: Duration, configured_frontend_timeout: Duration, configured_request_timeout: Duration, expect_proxy: bool, listener: Rc<RefCell<HttpsListener>>, pool: Weak<RefCell<Pool>>, proxy: Rc<RefCell<HttpsProxy>>, public_address: StdSocketAddr, rustls_details: ServerConnection, sock: MioTcpStream, sticky_name: String, token: Token, wait_time: Duration, ) -> HttpsSession
pub fn upgrade(&mut self) -> bool
Trait Implementations§
Source§impl ProxySession for HttpsSession
impl ProxySession for HttpsSession
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 HttpsSession
impl !RefUnwindSafe for HttpsSession
impl !Send for HttpsSession
impl !Sync for HttpsSession
impl Unpin for HttpsSession
impl !UnwindSafe for HttpsSession
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