Enum app_dirs::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.
SharedData
System-wide arbitrary app data.
SharedConfig
System-wide app configuration data.
Implementations
sourceimpl AppDataType
impl AppDataType
Returns true
for non-user-specific data types.
Trait Implementations
sourceimpl Clone for AppDataType
impl Clone for AppDataType
sourcefn clone(&self) -> AppDataType
fn clone(&self) -> AppDataType
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for AppDataType
impl Debug for AppDataType
sourceimpl Hash for AppDataType
impl Hash for AppDataType
sourceimpl PartialEq<AppDataType> for AppDataType
impl PartialEq<AppDataType> for AppDataType
impl Copy for AppDataType
impl Eq for AppDataType
impl StructuralEq for AppDataType
impl StructuralPartialEq for AppDataType
Auto Trait Implementations
impl RefUnwindSafe for AppDataType
impl Send for AppDataType
impl Sync for AppDataType
impl Unpin for AppDataType
impl UnwindSafe for AppDataType
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more