pub struct RootState {
pub agents: Vec<AgentInfo>,
pub active_sessions: Option<i64>,
pub terminals: Option<Vec<TerminalInfo>>,
pub config: Option<RootConfigState>,
}Expand description
Global state shared with every client subscribed to ahp-root://.
Fields§
§agents: Vec<AgentInfo>Available agent backends and their models
active_sessions: Option<i64>Number of active (non-disposed) sessions on the server
terminals: Option<Vec<TerminalInfo>>Known terminals on the server. Subscribe to individual terminal URIs for full state.
config: Option<RootConfigState>Agent host configuration schema and current values
Trait Implementations§
Source§impl<'de> Deserialize<'de> for RootState
impl<'de> Deserialize<'de> for RootState
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for RootState
Auto Trait Implementations§
impl Freeze for RootState
impl RefUnwindSafe for RootState
impl Send for RootState
impl Sync for RootState
impl Unpin for RootState
impl UnsafeUnpin for RootState
impl UnwindSafe for RootState
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