Enum app_dirs::AppDataType [] [src]

pub enum AppDataType {
    UserConfig,
    UserData,
    UserCache,
    SharedData,
    SharedConfig,
}

Enum specifying the type of app data you want to store.

Different platforms are NOT guaranteed to distinguish between each data type. Keep this in mind when choosing data file paths.

Example: Windows does not supported shared application data and does not distinguish between config and data. Therefore, on Windows, all variants except UserCache return the same path.

Variants

User-specific app configuration data.

User-specific arbitrary app data.

User-specific app cache data.

System-wide arbitrary app data.

System-wide app configuration data.

Methods

impl AppDataType
[src]

Returns true for non-user-specific data types.

Trait Implementations

impl Clone for AppDataType
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Copy for AppDataType
[src]

impl PartialEq for AppDataType
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Eq for AppDataType
[src]

impl Hash for AppDataType
[src]

Feeds this value into the given [Hasher]. Read more

Feeds a slice of this type into the given [Hasher]. Read more

impl Debug for AppDataType
[src]

Formats the value using the given formatter.