pub enum Directory {
Bin,
Cache,
Config,
Data,
Include,
Lib,
Log,
ProjectRoot,
Runtime,
State,
}
Expand description
Purpose of directory existence. Ex. Bin, Config, Cache etc.
Variants§
Bin
Binaries directory. This is where the project executable(s) is/are located
Cache
Non-essential data, usually used to speed up the application
Config
You can store there conf.d dir and other config files
Data
Essential files for application like db files, cross-session data etc.
Include
C/C++ headers files. Should include files like lib.h, lib.hpp or lib.inc
Lib
Shared library files. Should include files like lib.a, lib.so, lib.dylib or lib.dll
Log
Application logs. Usually subdir of the state
ProjectRoot
Root directory of the project. Has meaning only for the some strategies
Runtime
Runtime files are similar to the cache, but don’t persist between session/reboot
State
Non-essential data files that should persist between sessions. E.g. logs, history
Trait Implementations§
Source§impl Ord for Directory
impl Ord for Directory
Source§impl PartialOrd for Directory
impl PartialOrd for Directory
impl Copy for Directory
impl Eq for Directory
impl StructuralPartialEq for Directory
Auto Trait Implementations§
impl Freeze for Directory
impl RefUnwindSafe for Directory
impl Send for Directory
impl Sync for Directory
impl Unpin for Directory
impl UnwindSafe for Directory
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more