pub trait WebdriverInstallationInfo {
// Required methods
fn driver_install_path(&self) -> &Path;
fn driver_name_in_archive(&self) -> &'static str;
// Provided method
fn download_in_tempdir<'life0, 'life1, 'async_trait, U>(
&'life0 self,
url: U,
dir: &'life1 TempDir
) -> Pin<Box<dyn Future<Output = Result<PathBuf>> + Send + 'async_trait>>
where U: 'async_trait + IntoUrl + Send,
Self: Sync + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait { ... }
}
Expand description
Provides information for installing driver.
Required Methods§
sourcefn driver_install_path(&self) -> &Path
fn driver_install_path(&self) -> &Path
Path to install driver.
sourcefn driver_name_in_archive(&self) -> &'static str
fn driver_name_in_archive(&self) -> &'static str
Driver executable name in archive file.
Provided Methods§
sourcefn download_in_tempdir<'life0, 'life1, 'async_trait, U>(
&'life0 self,
url: U,
dir: &'life1 TempDir
) -> Pin<Box<dyn Future<Output = Result<PathBuf>> + Send + 'async_trait>>where
U: 'async_trait + IntoUrl + Send,
Self: Sync + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn download_in_tempdir<'life0, 'life1, 'async_trait, U>( &'life0 self, url: U, dir: &'life1 TempDir ) -> Pin<Box<dyn Future<Output = Result<PathBuf>> + Send + 'async_trait>>where U: 'async_trait + IntoUrl + Send, Self: Sync + 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,
Downloads url and extracts the driver inside tempdir.