Http module

State

structSource

The shared state set with app.state = *my_state. Take it as *State(My_State); the fields of My_State are reachable directly. The pointer is the state itself, not a copy: handlers on several threads see the same memory, so guard what they change.

Fields

value: T

See also