Enum app_dirs2::AppDataType
source · pub enum AppDataType {
UserConfig,
UserData,
UserCache,
SharedData,
SharedConfig,
}
Expand description
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.
Implementations§
source§impl AppDataType
impl AppDataType
Returns true
for non-user-specific data types.
Trait Implementations§
source§impl Clone for AppDataType
impl Clone for AppDataType
source§fn clone(&self) -> AppDataType
fn clone(&self) -> AppDataType
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for AppDataType
impl Debug for AppDataType
source§impl Hash for AppDataType
impl Hash for AppDataType
source§impl PartialEq<AppDataType> for AppDataType
impl PartialEq<AppDataType> for AppDataType
source§fn eq(&self, other: &AppDataType) -> bool
fn eq(&self, other: &AppDataType) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.