Skip to main content

ClientServer

Type Alias ClientServer 

Source
pub type ClientServer = Server<ClientServerComponents>;
Expand description

Client server handling the client API

Aliased Type§

pub struct ClientServer {
    pub state: ServerState,
    pub router: Router,
    pub listener: TcpListener,
    /* private fields */
}

Fields§

§state: ServerState

State passed to all components. This is cloned for each call.

§router: Router

The router used by this component. Might be used by tests to skip doing actual network requests.

§listener: TcpListener

The listener on which we will listen for stuff