[][src]Enum app_dirs2::AppDataType

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

UserConfig

User-specific app configuration data.

UserData

User-specific arbitrary app data.

UserCache

User-specific app cache data.

SharedData

System-wide arbitrary app data.

SharedConfig

System-wide app configuration data.

Implementations

impl AppDataType[src]

pub fn is_shared(&self) -> bool[src]

Returns true for non-user-specific data types.

Trait Implementations

impl Clone for AppDataType[src]

impl Copy for AppDataType[src]

impl Debug for AppDataType[src]

impl Eq for AppDataType[src]

impl Hash for AppDataType[src]

impl PartialEq<AppDataType> for AppDataType[src]

impl StructuralEq for AppDataType[src]

impl StructuralPartialEq for AppDataType[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.