pub struct DevServerState {Show 14 fields
pub last_dom_snapshot: Arc<RwLock<Option<String>>>,
pub last_app_state: Arc<RwLock<Option<Value>>>,
pub frontend_dir: PathBuf,
pub hot_reload: bool,
pub pending_actions: Arc<Mutex<Vec<AgentAction>>>,
pub action_waiters: Arc<Mutex<HashSet<String>>>,
pub action_results: Arc<Mutex<HashMap<String, ActionResult>>>,
pub action_result_notify: Arc<Notify>,
pub reload_generation: Arc<AtomicU64>,
pub frontend_signature: Arc<RwLock<u64>>,
pub recording: Arc<RecordingStore>,
pub screenshot_publisher: ScreenshotPublisher,
pub screenshot_path: Option<PathBuf>,
pub ipc_handler: Option<Arc<dyn IpcHandler>>,
}Expand description
Shared state for the development server.
Fields§
§last_dom_snapshot: Arc<RwLock<Option<String>>>The last captured DOM snapshot (for agent queries).
last_app_state: Arc<RwLock<Option<Value>>>The last captured application state.
frontend_dir: PathBufThe frontend directory path.
hot_reload: boolWhether frontend file polling is enabled.
pending_actions: Arc<Mutex<Vec<AgentAction>>>Shared queue of actions waiting for the browser bridge.
action_waiters: Arc<Mutex<HashSet<String>>>Action IDs currently waiting for a bridge execution receipt.
action_results: Arc<Mutex<HashMap<String, ActionResult>>>Bridge execution receipts consumed by ?wait=true callers.
action_result_notify: Arc<Notify>Wakes action callers when the bridge posts a receipt.
reload_generation: Arc<AtomicU64>Monotonically increasing frontend version used by hot reload.
frontend_signature: Arc<RwLock<u64>>Last observed frontend file signature.
recording: Arc<RecordingStore>The one and only recording session for this dev server.
screenshot_publisher: ScreenshotPublisherThe latest native PNG frame and its generation counter.
screenshot_path: Option<PathBuf>Optional compatibility path used by hosts that also persist frames.
ipc_handler: Option<Arc<dyn IpcHandler>>Optional host IPC handler for the native Agent bridge.
Trait Implementations§
Source§impl Clone for DevServerState
impl Clone for DevServerState
Source§fn clone(&self) -> DevServerState
fn clone(&self) -> DevServerState
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more