Struct sozu_lib::server::Server

source ·
pub struct Server {
    pub poll: Poll,
    /* private fields */
}
Expand description

Server handles the event loop, the listeners, the sessions and communication with the configuration channel.

A listener wraps a listen socket, the associated proxying protocols (HTTP, HTTPS and TCP) and the routing configuration for clusters. Listeners handle creating sessions from accepted sockets.

A session manages a “front” socket for a connected client, and all of the associated data (back socket, protocol state machine, buffers, metrics…).

Server gets configuration updates from the channel (domIN/path routes, backend server address…).

Listeners and sessions are all stored in a slab structure to index them by a Token, they all have to implement the ProxySession trait.

Fields§

§poll: Poll

Implementations§

Send all socket addresses and file descriptors of all proxies, via the scm socket

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.