Enum webdriver_install::installer::Driver[][src]

pub enum Driver {
    Chrome,
    Gecko,
}

Variants

Chrome
Gecko

Implementations

impl Driver[src]

pub fn install(&self) -> Result<PathBuf>[src]

Downloads and unarchives the driver executable to $HOME/.webdrivers

Example

use webdriver_install::Driver;

// Install geckodriver
Driver::Gecko.install()?;

// Install chromedriver
Driver::Chrome.install()?;

pub fn install_into(&self, target_dir: PathBuf) -> Result<PathBuf>[src]

Downloads and unarchives the driver executable into the specified target_dir

Example

use webdriver_install::Driver;
use std::path::PathBuf;

// Install geckodriver into /tmp/webdrivers
Driver::Gecko.install_into(PathBuf::from("/tmp/webdrivers"))?;

// Install chromedriver into /tmp/webdrivers
Driver::Chrome.install_into(PathBuf::from("/tmp/webdrivers"))?;

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.