Enum standard_paths::LocationType
[−]
[src]
pub enum LocationType { HomeLocation, DesktopLocation, DocumentsLocation, DownloadLocation, MoviesLocation, MusicLocation, PicturesLocation, ApplicationsLocation, FontsLocation, RuntimeLocation, TempLocation, GenericDataLocation, AppDataLocation, AppLocalDataLocation, GenericCacheLocation, AppCacheLocation, ConfigLocation, GenericConfigLocation, AppConfigLocation, }
Enumerates the standard location type.
Is used to call StandardPaths::writable location and StandardPaths::find_executable_in_paths.
Some of the values are used to acquire user-specific paths, some are application-specific and some are system-wide.
Variants
HomeLocation
The user's home directory.
- On Linux systems it's equal to the
$HOME
environment variable. - On the last Windows operating systems it's equal to the
%HomePath%
environment variable.
DesktopLocation
The user's desktop directory.
DocumentsLocation
The user's documents directory.
DownloadLocation
The directory for the user's downloaded files.
This is a generic value. On Windows if no such directory exists, the directory for storing user documents is returned.
MoviesLocation
The user's movies and videos directory.
MusicLocation
The user's music, recordings and other audio files directory.
PicturesLocation
The user's pictures, photos and screenshots directory.
ApplicationsLocation
The user's applications directory.
It might contain either executables, desktop files, or shortcuts.
It's a platform-specific value.
FontsLocation
The user's fonts directory.
RuntimeLocation
The directory for the runtime communication files (like Unix local sockets).
This is a generic value. It could returns None on some systems.
TempLocation
A directory for storing temporary files.
It might be application-specific, user-specific or system-wide.
GenericDataLocation
The directory for the persistent data shared across applications.
This is a generic value.
AppDataLocation
The persistent application data directory.
This is an application-specific directory. On the Windows operating system, this returns the roaming path.
AppLocalDataLocation
The local settings directory.
This is a Windows-specific value. On all other platforms, it returns the same value as AppDataLocation.
GenericCacheLocation
The directory for the user-specific cached data shared across applications.
This is a generic value. It could returns None from the appropriate methods if the system has no concept of shared cache.
AppCacheLocation
The user-specific cached data directory.
This is an application-specific directory.
ConfigLocation
The user-specific configuration files directory.
This may be either a generic value or application-specific.
GenericConfigLocation
The user-specific configuration files directory. shared between multiple applications.
This is a generic value.
AppConfigLocation
The user-specific configuration files directory.
This is an application-specific value.
Trait Implementations
impl Debug for LocationType
[src]
impl Clone for LocationType
[src]
fn clone(&self) -> LocationType
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more