#[non_exhaustive]pub enum LoadedBrowserPackage {
Chrome(LoadedChromePackage),
ChromeHeadlessShell(LoadedChromeHeadlessShellPackage),
}Expand description
A downloaded Chrome-compatible browser package paired with a matching ChromeDriver.
Returned by ChromeForTestingManager::download. Match on the enum when behavior differs
between regular Chrome and Chrome Headless Shell, or use Self::browser_executable and
Self::chromedriver_executable for behavior shared by both browser packages.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Chrome(LoadedChromePackage)
Regular Chrome for Testing.
ChromeHeadlessShell(LoadedChromeHeadlessShellPackage)
Chrome Headless Shell.
Implementations§
Source§impl LoadedBrowserPackage
impl LoadedBrowserPackage
Sourcepub const fn chrome_binary(&self) -> ChromeBinary
pub const fn chrome_binary(&self) -> ChromeBinary
The Chrome-compatible browser binary selected for this package.
Sourcepub fn browser_executable(&self) -> &Path
pub fn browser_executable(&self) -> &Path
Path to the cached browser executable.
Sourcepub fn chromedriver_executable(&self) -> &Path
pub fn chromedriver_executable(&self) -> &Path
Path to the cached ChromeDriver executable.
Trait Implementations§
Source§impl Clone for LoadedBrowserPackage
impl Clone for LoadedBrowserPackage
Source§fn clone(&self) -> LoadedBrowserPackage
fn clone(&self) -> LoadedBrowserPackage
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 moreAuto Trait Implementations§
impl Freeze for LoadedBrowserPackage
impl RefUnwindSafe for LoadedBrowserPackage
impl Send for LoadedBrowserPackage
impl Sync for LoadedBrowserPackage
impl Unpin for LoadedBrowserPackage
impl UnsafeUnpin for LoadedBrowserPackage
impl UnwindSafe for LoadedBrowserPackage
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