pub struct Builder { /* private fields */ }
Expand description
A builder for configurable launch of a Chromedriver process.
Implementations§
Source§impl Builder
impl Builder
Sourcepub fn set_chromedriver(self, chromedriver: impl AsRef<Path>) -> Self
pub fn set_chromedriver(self, chromedriver: impl AsRef<Path>) -> Self
Set the Chromedriver to use.
Sourcepub fn set_timeout(self, timeout: Duration) -> Self
pub fn set_timeout(self, timeout: Duration) -> Self
Set the timeout to wait for Chromedriver to start up properly.
Sourcepub fn launch(self) -> Result<Chromedriver>
pub fn launch(self) -> Result<Chromedriver>
Launch the Chromedriver process and wait for it to be fully initialized and serving a webdriver service.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Builder
impl RefUnwindSafe for Builder
impl Send for Builder
impl Sync for Builder
impl Unpin for Builder
impl UnwindSafe for Builder
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