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]

[src]

Returns true for non-user-specific data types.

Trait Implementations

impl Clone for AppDataType
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Copy for AppDataType
[src]

impl PartialEq for AppDataType
[src]

[src]

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

1.0.0
[src]

This method tests for !=.

impl Eq for AppDataType
[src]

impl Hash for AppDataType
[src]

[src]

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

1.3.0
[src]

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

impl Debug for AppDataType
[src]

[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl Send for AppDataType

impl Sync for AppDataType