pub struct BrowserBuilder { /* private fields */ }Expand description
Builder for launching a browser.
Implementations§
Source§impl BrowserBuilder
impl BrowserBuilder
Sourcepub fn executable_path(self, path: impl Into<PathBuf>) -> Self
pub fn executable_path(self, path: impl Into<PathBuf>) -> Self
Set the path to the Chromium executable.
If not set, the launcher will search common paths and
check the CHROMIUM_PATH environment variable.
Sourcepub fn headless(self, headless: bool) -> Self
pub fn headless(self, headless: bool) -> Self
Set whether to run in headless mode.
Default is true.
Trait Implementations§
Source§impl Clone for BrowserBuilder
impl Clone for BrowserBuilder
Source§fn clone(&self) -> BrowserBuilder
fn clone(&self) -> BrowserBuilder
Returns a duplicate of the value. Read more
1.0.0 · 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 BrowserBuilder
impl Debug for BrowserBuilder
Auto Trait Implementations§
impl Freeze for BrowserBuilder
impl RefUnwindSafe for BrowserBuilder
impl Send for BrowserBuilder
impl Sync for BrowserBuilder
impl Unpin for BrowserBuilder
impl UnwindSafe for BrowserBuilder
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