#[non_exhaustive]pub enum KnownBrowser {
Firefox,
Chrome,
ChromeBeta,
Chromium,
}Expand description
A browser from which cookies can be pulled.
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.
Firefox
The Firefox web browser from Mozilla.
Chrome
The Chrome web browser from Google.
ChromeBeta
The Beta release of the Chrome web browser from Google.
Chromium
The Chromium open-source web browser maintained by Google.
Implementations§
Source§impl KnownBrowser
impl KnownBrowser
Sourcepub fn engine(&self) -> KnownEngine
pub fn engine(&self) -> KnownEngine
Gets the engine used to power the web browser.
Sourcepub fn default_config_path(&self) -> Option<PathBuf>
pub fn default_config_path(&self) -> Option<PathBuf>
Gets the default user configuration path for the web browser.
While most browsers have a default configuration path, there is no guarantee that the environment in which this function runs has enough context to determine what that path is.
The function returns None in that case.
Trait Implementations§
Source§impl Clone for KnownBrowser
impl Clone for KnownBrowser
Source§fn clone(&self) -> KnownBrowser
fn clone(&self) -> KnownBrowser
Returns a duplicate of the value. Read more
1.0.0 · 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 KnownBrowser
impl Debug for KnownBrowser
Source§impl IntoEnumIterator for KnownBrowser
impl IntoEnumIterator for KnownBrowser
Source§impl PartialEq for KnownBrowser
impl PartialEq for KnownBrowser
impl Eq for KnownBrowser
impl StructuralPartialEq for KnownBrowser
Auto Trait Implementations§
impl Freeze for KnownBrowser
impl RefUnwindSafe for KnownBrowser
impl Send for KnownBrowser
impl Sync for KnownBrowser
impl Unpin for KnownBrowser
impl UnwindSafe for KnownBrowser
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