pub struct SelectedVersion { /* private fields */ }Expand description
A version of Chrome and ChromeDriver that has been resolved against the
chrome-for-testing release index but not yet downloaded.
Construct via crate::ChromeForTestingManager::resolve_version and pass into
crate::ChromeForTestingManager::download.
Implementations§
Source§impl SelectedVersion
impl SelectedVersion
Sourcepub fn channel(&self) -> Option<&Channel>
pub fn channel(&self) -> Option<&Channel>
The release channel this version was resolved through, if any.
None for versions resolved by VersionRequest::Latest or VersionRequest::Fixed.
Sourcepub fn has_chrome_download(&self) -> bool
pub fn has_chrome_download(&self) -> bool
Whether a Chrome download exists for this version on the detected platform.
Sourcepub fn has_chromedriver_download(&self) -> bool
pub fn has_chromedriver_download(&self) -> bool
Whether a ChromeDriver download exists for this version on the detected platform.
Trait Implementations§
Source§impl Debug for SelectedVersion
impl Debug for SelectedVersion
Source§impl From<(VersionInChannel, Platform)> for SelectedVersion
impl From<(VersionInChannel, Platform)> for SelectedVersion
Source§fn from((v, p): (VersionInChannel, Platform)) -> Self
fn from((v, p): (VersionInChannel, Platform)) -> Self
Converts to this type from the input type.
Source§impl From<(VersionWithoutChannel, Platform)> for SelectedVersion
impl From<(VersionWithoutChannel, Platform)> for SelectedVersion
Source§fn from((v, p): (VersionWithoutChannel, Platform)) -> Self
fn from((v, p): (VersionWithoutChannel, Platform)) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for SelectedVersion
impl RefUnwindSafe for SelectedVersion
impl Send for SelectedVersion
impl Sync for SelectedVersion
impl Unpin for SelectedVersion
impl UnsafeUnpin for SelectedVersion
impl UnwindSafe for SelectedVersion
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