pub struct AppState {
pub host: EmbeddedHost,
pub webhook_registry: RwLock<WebhookRegistry>,
pub metrics: Arc<WiMetricsRegistry>,
}Expand description
Shared application state for all route handlers.
Fields§
§host: EmbeddedHostThe embedded host (owns AQ engine, ContextStore, ConnectorRegistry).
webhook_registry: RwLock<WebhookRegistry>Webhook registry (loaded from ContextStore at startup, modified via API).
metrics: Arc<WiMetricsRegistry>Prometheus metrics registry.
Auto Trait Implementations§
impl !Freeze for AppState
impl !RefUnwindSafe for AppState
impl Send for AppState
impl Sync for AppState
impl Unpin for AppState
impl UnsafeUnpin for AppState
impl !UnwindSafe for AppState
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more