pub struct Playwright;Expand description
The Playwright entry point. A lightweight handle — launch() performs no
process spawning (there is no driver in this crate).
Implementations§
Source§impl Playwright
impl Playwright
Sourcepub async fn launch() -> Result<Self>
pub async fn launch() -> Result<Self>
“Launch” Playwright. No-op beyond returning a handle (no driver here).
Sourcepub fn chromium(&self) -> BrowserType
pub fn chromium(&self) -> BrowserType
The Chromium browser engine (the only fully-supported engine here).
Sourcepub fn firefox(&self) -> BrowserType
pub fn firefox(&self) -> BrowserType
The Firefox engine. Resolves to Chromium (CDP-only crate); logs a warning on launch.
Sourcepub fn webkit(&self) -> BrowserType
pub fn webkit(&self) -> BrowserType
The WebKit engine. Resolves to Chromium (CDP-only crate); logs a warning on launch.
Trait Implementations§
Source§impl Clone for Playwright
impl Clone for Playwright
Source§fn clone(&self) -> Playwright
fn clone(&self) -> Playwright
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 moreimpl Copy for Playwright
Source§impl Debug for Playwright
impl Debug for Playwright
Source§impl Default for Playwright
impl Default for Playwright
Source§fn default() -> Playwright
fn default() -> Playwright
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for Playwright
impl RefUnwindSafe for Playwright
impl Send for Playwright
impl Sync for Playwright
impl Unpin for Playwright
impl UnsafeUnpin for Playwright
impl UnwindSafe for Playwright
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