pub struct DevServerState {
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 reload_generation: Arc<AtomicU64>,
pub frontend_signature: Arc<RwLock<u64>>,
pub recording: Arc<RecordingStore>,
}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.
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.
Trait Implementations§
Source§impl Clone for DevServerState
impl Clone for DevServerState
Source§fn clone(&self) -> DevServerState
fn clone(&self) -> DevServerState
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl !RefUnwindSafe for DevServerState
impl !UnwindSafe for DevServerState
impl Freeze for DevServerState
impl Send for DevServerState
impl Sync for DevServerState
impl Unpin for DevServerState
impl UnsafeUnpin for DevServerState
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