FirefoxPath

Trait FirefoxPath 

Source
pub trait FirefoxPath {
    const BASE: &'static str;
    const NAME: &'static str;
    const COOKIES: &str = "cookies.sqlite";
    const LOGIN_DATA: &str = "logins.json";
    const KEY: &str = "key4.db";

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

Required Associated Constants§

Source

const BASE: &'static str

Suffix for data path

Source

const NAME: &'static str

Provided Associated Constants§

Source

const COOKIES: &str = "cookies.sqlite"

Suffix for cookies data path (sqlite3 database)

Source

const LOGIN_DATA: &str = "logins.json"

Suffix for login data path (json)

Source

const KEY: &str = "key4.db"

Suffix for decryption key path (sqlite3 database)

Provided Methods§

Source

fn key(base: PathBuf) -> PathBuf

Decryption key path (sqlite3 database)

Source

fn key_temp() -> Option<PathBuf>

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

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 path (json)

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.

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 FirefoxPath for Firefox

Source§

const BASE: &'static str = ".mozilla/firefox"

Source§

const NAME: &'static str = "Firefox"

Source§

impl FirefoxPath for Floorp

Source§

const BASE: &'static str = ".floorp"

Source§

const NAME: &'static str = "Floorp"

Source§

impl FirefoxPath for Librewolf

Source§

const BASE: &'static str = ".librewolf"

Source§

const NAME: &'static str = "Librewolf"

Source§

impl FirefoxPath for Zen

Source§

const BASE: &'static str = ".zen"

Source§

const NAME: &'static str = "Zen"