pub type PageCallback = Box<dyn Fn(Page) -> Pin<Box<dyn Future<Output = Result<()>> + Send>> + Send + Sync>;Expand description
Async callback that receives a Playwright page reference.
This type alias defines the signature for BrowserConfig::page_setup and
BrowserConfig::page_action callbacks. The closure receives a cloned
playwright_rs::Page and must return a pinned, Send future that resolves
to Result<()>. Because the closure itself must be Send + Sync, it can be
shared safely across threads.
Aliased Typeยง
pub struct PageCallback(/* private fields */);