pub trait BrowserProcessHandle: Send {
// Required methods
fn wait_for_devtools_ws_url(
&mut self,
timeout: Duration,
) -> BrowserLauncherFuture<'_, Result<String, String>>;
fn shutdown(&mut self) -> BrowserLauncherFuture<'_, ()>;
}Expand description
Owned handle to a running headless browser child process.
Required Methods§
Sourcefn wait_for_devtools_ws_url(
&mut self,
timeout: Duration,
) -> BrowserLauncherFuture<'_, Result<String, String>>
fn wait_for_devtools_ws_url( &mut self, timeout: Duration, ) -> BrowserLauncherFuture<'_, Result<String, String>>
Waits up to timeout for Chrome to print its DevTools ws:// URL on stderr.
Sourcefn shutdown(&mut self) -> BrowserLauncherFuture<'_, ()>
fn shutdown(&mut self) -> BrowserLauncherFuture<'_, ()>
Terminates the running browser process cleanly.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".