Skip to main content

Module state

Module state 

Source
Available on crate feature state only.
Expand description

Global application state and server handle.

Populate GlobalState (fields depend on enabled features), attach it with .build() as app data, and let ServerHandle own the actix server lifecycle.

Structsยง

GlobalState
Shared application state, stored as actix-web Data<GlobalState>.
ServerHandle
Owns the running server: start/stop timestamps, running flag and the stop signal.