pub struct DashboardState {
pub cwd: PathBuf,
pub pty_sessions: HashMap<String, PtyHandle>,
pub connections: usize,
pub log_store: InMemoryLogStore,
pub mcp_activity: SharedMcpActivity,
pub user_hints: SharedUserHints,
pub collab_hub: SharedCollabHub,
pub prompt_manager: PromptManager,
}Expand description
Shared state for the web dashboard
Fields§
§cwd: PathBufCurrent working directory for file browser
pty_sessions: HashMap<String, PtyHandle>Active PTY sessions
connections: usizeNumber of active WebSocket connections
log_store: InMemoryLogStoreIn-memory store for recent log entries
mcp_activity: SharedMcpActivityReal-time MCP activity tracking (for Wave Compass)
user_hints: SharedUserHintsUser hints queue (from browser to AI)
collab_hub: SharedCollabHubCollaboration hub for dashboard sessions
prompt_manager: PromptManagerPending AI prompts waiting for user answers
Implementations§
Source§impl DashboardState
impl DashboardState
pub fn new(cwd: PathBuf, log_store: InMemoryLogStore) -> Self
Sourcepub fn mcp_activity_handle(&self) -> SharedMcpActivity
pub fn mcp_activity_handle(&self) -> SharedMcpActivity
Get a clone of the MCP activity state for sharing with MCP context
Sourcepub fn user_hints_handle(&self) -> SharedUserHints
pub fn user_hints_handle(&self) -> SharedUserHints
Get a clone of the user hints queue for sharing with MCP context
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for DashboardState
impl !RefUnwindSafe for DashboardState
impl Send for DashboardState
impl Sync for DashboardState
impl Unpin for DashboardState
impl UnsafeUnpin for DashboardState
impl !UnwindSafe for DashboardState
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
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.Source§impl<T> DowncastSync for T
impl<T> DowncastSync for T
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more