Skip to main content

Module state

Module state 

Source
Expand description

Defines the shared application state for the Molten API.

This module provides the AppState struct, which holds common resources such as the database connection and service clients, making them accessible to all request handlers.

Structsยง

AppState
The shared state accessible by all request handlers. We wrap it in Arc for cheap cloning across threads.