pub struct GatewayState {
pub event_store: Arc<EventStore>,
pub agents: HashMap<String, Arc<AgentRuntime>>,
pub tool_registry: Arc<ToolRegistry>,
pub auth: Arc<AuthState>,
pub channels: Arc<RwLock<ChannelRegistry>>,
pub events: EventBroadcaster,
pub config: GatewayConfig,
}Expand description
Gateway server state shared across handlers.
Fields§
§event_store: Arc<EventStore>Event store for session persistence.
agents: HashMap<String, Arc<AgentRuntime>>Agent runtimes by agent ID.
tool_registry: Arc<ToolRegistry>Shared tool registry.
auth: Arc<AuthState>Authentication state.
channels: Arc<RwLock<ChannelRegistry>>Channel registry.
events: EventBroadcasterUI event broadcaster.
config: GatewayConfigGateway configuration.
Auto Trait Implementations§
impl Freeze for GatewayState
impl !RefUnwindSafe for GatewayState
impl Send for GatewayState
impl Sync for GatewayState
impl Unpin for GatewayState
impl !UnwindSafe for GatewayState
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