Skip to main content

SharedStateMap

Type Alias SharedStateMap 

Source
pub type SharedStateMap = Arc<RwLock<HashMap<TypeId, Arc<dyn Any + Send + Sync>>>>;
Expand description

Shared, type-keyed state map used by stateful handlers.

Wrapped in Arc<RwLock<…>> so that handlers registered before a state type is injected (e.g., Tauri’s AppHandle) can still resolve it at call time.

Aliased Type§

pub struct SharedStateMap { /* private fields */ }