pub struct DevServerState {
pub last_dom_snapshot: Arc<RwLock<Option<String>>>,
pub last_app_state: Arc<RwLock<Option<Value>>>,
pub frontend_dir: PathBuf,
}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.
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