pub enum BrowserSelector {
Url(Url),
Name(String),
Kind(Kind),
ExecutablePath(PathBuf),
}Expand description
Parsed form of a BROWSER_CONTROL value.
Variants§
Url(Url)
Direct CDP/BiDi WebSocket or HTTP URL.
Name(String)
Friendly instance name like firefox-pikachu.
Kind(Kind)
Browser kind like chrome or firefox.
ExecutablePath(PathBuf)
Absolute path to a browser executable (must exist).
Trait Implementations§
Source§impl Clone for BrowserSelector
impl Clone for BrowserSelector
Source§fn clone(&self) -> BrowserSelector
fn clone(&self) -> BrowserSelector
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 BrowserSelector
impl Debug for BrowserSelector
Source§impl PartialEq for BrowserSelector
impl PartialEq for BrowserSelector
Source§fn eq(&self, other: &BrowserSelector) -> bool
fn eq(&self, other: &BrowserSelector) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for BrowserSelector
impl StructuralPartialEq for BrowserSelector
Auto Trait Implementations§
impl Freeze for BrowserSelector
impl RefUnwindSafe for BrowserSelector
impl Send for BrowserSelector
impl Sync for BrowserSelector
impl Unpin for BrowserSelector
impl UnsafeUnpin for BrowserSelector
impl UnwindSafe for BrowserSelector
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<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more