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
UserConfig
User-specific app configuration data.
UserData
User-specific arbitrary app data.
UserCache
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]
fn clone(&self) -> AppDataType
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl Copy for AppDataType
[src]
impl PartialEq for AppDataType
[src]
fn eq(&self, __arg_0: &AppDataType) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0
This method tests for !=
.
impl Eq for AppDataType
[src]
impl Hash for AppDataType
[src]
fn hash<__H: Hasher>(&self, __arg_0: &mut __H)
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more