pub trait BrowserBackend: Send + Sync {
// Required method
fn cdp_endpoint(
&self,
) -> impl Future<Output = Result<String, BrowserBackendError>> + Send;
}Expand description
Backend abstraction for browser automation runtimes.
Implementations may connect to local Chromium, remote CDP endpoints, or cloud browser providers.
Required Methods§
Sourcefn cdp_endpoint(
&self,
) -> impl Future<Output = Result<String, BrowserBackendError>> + Send
fn cdp_endpoint( &self, ) -> impl Future<Output = Result<String, BrowserBackendError>> + Send
Returns a CDP endpoint URL for Playwright/browser clients.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".