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

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.

The user's desktop directory.

The user's documents directory.

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.

The user's movies and videos directory.

The user's music, recordings and other audio files directory.

The user's pictures, photos and screenshots directory.

The user's applications directory.

It might contain either executables, desktop files, or shortcuts.

It's a platform-specific value.

The user's fonts directory.

The directory for the runtime communication files (like Unix local sockets).

This is a generic value. It could returns None on some systems.

A directory for storing temporary files.

It might be application-specific, user-specific or system-wide.

The directory for the persistent data shared across applications.

This is a generic value.

The persistent application data directory.

This is an application-specific directory. On the Windows operating system, this returns the roaming path.

The local settings directory.

This is a Windows-specific value. On all other platforms, it returns the same value as AppDataLocation.

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.

The user-specific cached data directory.

This is an application-specific directory.

The user-specific configuration files directory.

This may be either a generic value or application-specific.

The user-specific configuration files directory. shared between multiple applications.

This is a generic value.

The user-specific configuration files directory.

This is an application-specific value.

Trait Implementations

impl Debug for LocationType
[src]

[src]

Formats the value using the given formatter.

impl Clone for LocationType
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl PartialEq for LocationType
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

1.0.0
[src]

This method tests for !=.