Struct sozu_lib::https::Session

source ·
pub struct Session {
    pub frontend_token: Token,
    pub backend: Option<Rc<RefCell<Backend>>>,
    pub back_connected: BackendConnectionStatus,
    pub public_address: StdSocketAddr,
    pub metrics: SessionMetrics,
    pub cluster_id: Option<String>,
    pub listener_token: Token,
    pub connection_attempt: u8,
    pub listener: Rc<RefCell<Listener>>,
    /* private fields */
}

Fields§

§frontend_token: Token§backend: Option<Rc<RefCell<Backend>>>§back_connected: BackendConnectionStatus§public_address: StdSocketAddr§metrics: SessionMetrics§cluster_id: Option<String>§listener_token: Token§connection_attempt: u8§listener: Rc<RefCell<Listener>>

Implementations§

Trait Implementations§

closes a session
if a timeout associated with the session triggers, the event loop will call this method with the timeout’s token Read more
indicates the protocol associated with the session Read more
if the event loop got an event for a token associated with the session, it will call this method on the session Read more
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
tells the session to shut down if possible Read more
last time the session got an event
displays the session’s internal state (for debugging purpose)
list the tokens associated with the session

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Should always be Self
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.