pub enum VersionRequest {
Latest,
LatestIn(Channel),
Fixed(Version),
}Expand description
How to pick which Chrome / ChromeDriver version to install and run.
See the named constructors (Self::stable, Self::beta, Self::dev, Self::canary)
and the From<Channel> / From<Version> impls for the most ergonomic forms.
Variants§
Latest
Uses the latest working version. Might not be stable yet.
You may want to prefer variant VersionRequest::LatestIn instead.
LatestIn(Channel)
Use the latest release from the given Channel,
e.g. the one from the Channel::Stable channel.
Fixed(Version)
Pin a specific version to use.
Implementations§
Source§impl VersionRequest
impl VersionRequest
Sourcepub fn stable() -> Self
pub fn stable() -> Self
Latest release from the Channel::Stable channel.
Sourcepub fn beta() -> Self
pub fn beta() -> Self
Latest release from the Channel::Beta channel.
Sourcepub fn dev() -> Self
pub fn dev() -> Self
Latest release from the Channel::Dev channel.
Sourcepub fn canary() -> Self
pub fn canary() -> Self
Latest release from the Channel::Canary channel.
Trait Implementations§
Source§impl Clone for VersionRequest
impl Clone for VersionRequest
Source§fn clone(&self) -> VersionRequest
fn clone(&self) -> VersionRequest
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 moreSource§impl Debug for VersionRequest
impl Debug for VersionRequest
Source§impl From<Channel> for VersionRequest
impl From<Channel> for VersionRequest
Source§impl From<Version> for VersionRequest
impl From<Version> for VersionRequest
Source§impl PartialEq for VersionRequest
impl PartialEq for VersionRequest
Source§fn eq(&self, other: &VersionRequest) -> bool
fn eq(&self, other: &VersionRequest) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for VersionRequest
impl StructuralPartialEq for VersionRequest
Auto Trait Implementations§
impl Freeze for VersionRequest
impl RefUnwindSafe for VersionRequest
impl Send for VersionRequest
impl Sync for VersionRequest
impl Unpin for VersionRequest
impl UnsafeUnpin for VersionRequest
impl UnwindSafe for VersionRequest
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.