pub struct ChromiumContext { /* private fields */ }Expand description
A single Chromium page context.
Trait Implementations§
Source§impl RenderContext for ChromiumContext
impl RenderContext for ChromiumContext
Navigate to a URL with a timeout.
Source§fn execute_js<'life0, 'life1, 'async_trait>(
&'life0 self,
script: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<Value>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn execute_js<'life0, 'life1, 'async_trait>(
&'life0 self,
script: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<Value>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Execute JavaScript in the page context and return the result.
Source§fn get_html<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<String>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_html<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<String>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Get the full page HTML.
Auto Trait Implementations§
impl Freeze for ChromiumContext
impl !RefUnwindSafe for ChromiumContext
impl Send for ChromiumContext
impl Sync for ChromiumContext
impl Unpin for ChromiumContext
impl UnsafeUnpin for ChromiumContext
impl !UnwindSafe for ChromiumContext
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