Trait ChromiumPath

Source
pub trait ChromiumPath {
    const BASE: &'static str;
    const NAME: &'static str;
    const SAFE_STORAGE: &str;
    const COOKIES: &str = "Default/Cookies";
    const LOGIN_DATA: &str = "Default/Login Data";
    const LOGIN_DATA_FOR_ACCOUNT: &str = "Default/Login Data For Account";

    // Provided methods
    fn cookies(base: PathBuf) -> PathBuf { ... }
    fn cookies_temp() -> Option<PathBuf> { ... }
    fn login_data(base: PathBuf) -> PathBuf { ... }
    fn login_data_temp() -> Option<PathBuf> { ... }
    fn login_data_for_account(base: PathBuf) -> PathBuf { ... }
    fn login_data_for_account_temp() -> Option<PathBuf> { ... }
}

Required Associated Constants§

Source

const BASE: &'static str

Suffix for browser data path

Source

const NAME: &'static str

Browser name for std::fmt::Display

Source

const SAFE_STORAGE: &str

Safe keyring Storage name

Provided Associated Constants§

Source

const COOKIES: &str = "Default/Cookies"

Suffix for cookies data path (sqlite3 database)

Source

const LOGIN_DATA: &str = "Default/Login Data"

Suffix for login data path (sqlite3 database)

Source

const LOGIN_DATA_FOR_ACCOUNT: &str = "Default/Login Data For Account"

Another login data (sqlite3)

Provided Methods§

Source

fn cookies(base: PathBuf) -> PathBuf

Cookies path (sqlite3 database)

Source

fn cookies_temp() -> Option<PathBuf>

Copy the cookies file to a location to avoid conflicts with the browser over access to it.

Source

fn login_data(base: PathBuf) -> PathBuf

Login data file (sqlite3 database)

Source

fn login_data_temp() -> Option<PathBuf>

Copy the Login data file to a location to avoid conflicts with the browser over access to it.

Source

fn login_data_for_account(base: PathBuf) -> PathBuf

Login data file (sqlite3 database)

Source

fn login_data_for_account_temp() -> Option<PathBuf>

Copy the Login data file to a location to avoid conflicts with the browser over access to it.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl ChromiumPath for Brave

Source§

const BASE: &'static str = ".config/BraveSoftware/Brave-Browser"

Source§

const NAME: &'static str = "Brave"

Source§

const SAFE_STORAGE: &str

Source§

impl ChromiumPath for Chrome

Source§

const BASE: &'static str = ".config/google-chrome"

Source§

const NAME: &'static str = "Chrome"

Source§

const SAFE_STORAGE: &str

Source§

impl ChromiumPath for Chromium

Source§

const BASE: &'static str = ".config/chromium"

Source§

const NAME: &'static str = "Chromium"

Source§

const SAFE_STORAGE: &str

Source§

impl ChromiumPath for Edge

Source§

const BASE: &'static str = ".config/microsoft-edge"

Source§

const NAME: &'static str = "Edge"

Source§

const SAFE_STORAGE: &str

Source§

impl ChromiumPath for Opera

Source§

const BASE: &'static str = ".config/opera"

Source§

const NAME: &'static str = "Opera"

Source§

const SAFE_STORAGE: &str

Source§

impl ChromiumPath for Vivaldi

Source§

const BASE: &'static str = ".config/vivaldi"

Source§

const NAME: &'static str = "Vivaldi"

Source§

const SAFE_STORAGE: &str

Source§

impl ChromiumPath for Yandex

Source§

const BASE: &'static str = ".config/yandex-browser"

Source§

const NAME: &'static str = "Yandex"

Source§

const LOGIN_DATA: &str = "Default/Ya Passman Data"

Source§

const SAFE_STORAGE: &str