Enum unidirs::UnifiedDirs [−][src]
pub enum UnifiedDirs {
Local(LocalDirs),
Service(ServiceDirs),
User(UserDirs),
}
Expand description
Unified directories provide a common interface over all different ways of constructing directory providers. It provides constructors for each variant.
The most significant function is UnifiedDirs::simple
, giving an automatic selector for the
right directory provider based on the way an application is run.
Variants
Local(LocalDirs)
Tuple Fields
0: LocalDirs
Local directories for development.
Service(ServiceDirs)
Tuple Fields
0: ServiceDirs
Directories for applications run as service.
User(UserDirs)
Tuple Fields
0: UserDirs
User specific application folders.
Implementations
Shorthand to create LocalDirs
backed unified dirs at a specific location.
Shorthand to create unified dirs with ServiceDirs
as backend.
Shorthand to create unified dirs with UserDirs
as backend.
Create a builder for unified directories that uses various detection techniques to select
the right backend. See the SimpleBuilder
implementation for more details about the
used techniques.
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 tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
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 UnifiedDirs
impl Send for UnifiedDirs
impl Sync for UnifiedDirs
impl Unpin for UnifiedDirs
impl UnwindSafe for UnifiedDirs
Blanket Implementations
Mutably borrows from an owned value. Read more