pub struct PopupManager { /* private fields */ }Expand description
Manager for page-level popup events.
Implementations§
Source§impl PopupManager
impl PopupManager
Sourcepub fn new(
connection: Arc<CdpConnection>,
session_id: String,
target_id: String,
) -> Self
pub fn new( connection: Arc<CdpConnection>, session_id: String, target_id: String, ) -> Self
Create a new popup manager for a page.
Sourcepub async fn set_handler<F, Fut>(&self, handler: F)
pub async fn set_handler<F, Fut>(&self, handler: F)
Set a handler for popup events.
Sourcepub async fn remove_handler(&self)
pub async fn remove_handler(&self)
Remove the popup handler.
Auto Trait Implementations§
impl !Freeze for PopupManager
impl !RefUnwindSafe for PopupManager
impl Send for PopupManager
impl Sync for PopupManager
impl Unpin for PopupManager
impl !UnwindSafe for PopupManager
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