Skip to main content

set_global_state

Function set_global_state 

Source
pub fn set_global_state(state: Arc<AppState>) -> Result<(), EuvError>
Expand description

Sets the global application state.

§Arguments

  • Arc<AppState> - The shared application state to store globally.

§Returns

  • Result<(), EuvError> - Indicates success or failure of the initialization.