Skip to main content

BrowserBackend

Trait BrowserBackend 

Source
pub trait BrowserBackend: Send + Sync {
    // Required method
    fn cdp_endpoint(
        &self,
    ) -> Pin<Box<dyn 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§

Source

fn cdp_endpoint( &self, ) -> Pin<Box<dyn Future<Output = Result<String, BrowserBackendError>> + Send + '_>>

Returns a CDP endpoint URL for Playwright/browser clients.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§