pub struct PageHandle { /* private fields */ }Expand description
Provider-erased RAII handle for a page checked out from a BrowserPool.
Clone is required by the engine’s Context: Clone contract. All clones share an atomic
close guard, guaranteeing at-most-once cleanup: an explicit Self::close wins, while dropping
the last clone schedules background cleanup only when explicit close was never called.
Implementations§
Source§impl PageHandle
impl PageHandle
Sourcepub fn proxy_info(&self) -> Option<&ProxyInfo>
pub fn proxy_info(&self) -> Option<&ProxyInfo>
Returns the proxy resolved for the browser that owns this page.
Sourcepub async fn close(&self) -> Result<(), BrowserError>
pub async fn close(&self) -> Result<(), BrowserError>
Explicitly closes the page.
This is idempotent across every clone of the handle.
Trait Implementations§
Source§impl Clone for PageHandle
impl Clone for PageHandle
Source§fn clone(&self) -> PageHandle
fn clone(&self) -> PageHandle
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PageHandle
impl Debug for PageHandle
Auto Trait Implementations§
impl !RefUnwindSafe for PageHandle
impl !UnwindSafe for PageHandle
impl Freeze for PageHandle
impl Send for PageHandle
impl Sync for PageHandle
impl Unpin for PageHandle
impl UnsafeUnpin for PageHandle
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