Struct unidirs::UserDirs [−][src]
pub struct UserDirs { /* fields omitted */ }
Expand description
Linux
Type | Location |
---|---|
Cache | $XDG_CACHE_HOME /<app> or $HOME /.cache/<app> |
Config | $XDG_CONFIG_HOME /<app> or $HOME /.config/<app> |
Data | $XDG_DATA_HOME /<app> or $HOME /.local/share/<app> |
Mac OS
Type | Location |
---|---|
Cache | $HOME /Library/Caches/<qual> .<org> .<app> |
Config | $HOME /Library/Application Support/<qual> .<org> .<app> |
Data | $HOME /Library/Application Support/<qual> .<org> .<app> |
Windows
Type | Location |
---|---|
Cache | %LOCALAPPDATA% \<org> \<app> \cache |
Config | %ROAMINGAPPDATA% \<org> \<app> \config |
Data | %ROAMINGAPPDATA% \<org> \<app> \data |
Implementations
Create a new instance with the given qualifier, organization and application. These values are used to create a custom directory structure depending on the operating system standards.
Trait Implementations
The cache directory is a location where an application can save any temporary data. The contents can potentially be deleted by the system at any time. Therefore, the application must be able to work without these files or be able to re-create them. Read more
The config directory is where an application’s settings are stored. These are usually created by the user and loaded once at startup of the application. Read more
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
Auto Trait Implementations
impl RefUnwindSafe for UserDirs
impl UnwindSafe for UserDirs
Blanket Implementations
Mutably borrows from an owned value. Read more