pub struct DevServer { /* private fields */ }Expand description
Development server that serves the app in browser mode.
This is NOT the production renderer. It’s a development tool that allows AI agents (and humans) to interact with the app via a browser.
Implementations§
Source§impl DevServer
impl DevServer
Sourcepub fn new_with_handler(
config: DevConfig,
frontend_dir: PathBuf,
handler: Arc<dyn IpcHandler>,
) -> Self
pub fn new_with_handler( config: DevConfig, frontend_dir: PathBuf, handler: Arc<dyn IpcHandler>, ) -> Self
Create a server whose Agent IPC endpoint forwards to the native host.
Sourcepub fn with_screenshot_path(self, path: PathBuf) -> Self
pub fn with_screenshot_path(self, path: PathBuf) -> Self
Keep a stable on-disk copy for humans and external image viewers. The Agent endpoint itself serves the in-memory published frame.
pub fn screenshot_publisher(&self) -> ScreenshotPublisher
Auto Trait Implementations§
impl !RefUnwindSafe for DevServer
impl !UnwindSafe for DevServer
impl Freeze for DevServer
impl Send for DevServer
impl Sync for DevServer
impl Unpin for DevServer
impl UnsafeUnpin for DevServer
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