Skip to main content

Module shared_state

Module shared_state 

Source
Expand description

Shared state management for thread-based architecture

This module provides the core shared memory infrastructure that enables efficient communication between worker threads while maintaining thread safety.

Re-exports§

pub use self::SharedSystemState as SharedState;

Structs§

AtomicCounters
Atomic counters for system metrics
ConversationHierarchy
Hierarchical conversation storage for reduced lock contention
LLMRuntime
Direct LLM runtime integration
PendingMessage
Pending message for asynchronous processing
PreExtracted
Cached result of pre-extracting a file attachment before the user hits Send. Populated by POST /attachments/preprocess, consumed by /generate/stream.
SessionData
Session-level data structure
SharedSystemState
Core shared system state container
UnifiedAppState
Unified application state for all API handlers. This is the single state type used by the Axum router, providing access to all subsystems through shared memory (Arc) rather than network hops.