pub enum RuntimeBehavior {
PrintConfigPath,
PrintDataPath,
DumpDefaultConfig,
DryRun,
Run,
}
Expand description
How the runtime should behave. Dictated by the flags provided to Cli
Variants§
PrintConfigPath
will print all directories HAC
is looking for a configuration file
that means. Will print wether or not HAC_CONFIG is set, and if so where
it points to, will print $XDG_CONFIG_HOME
, and also $HOME/.config
PrintDataPath
will print all directories HAC
is looking for collections, this will
also print the path specified on the configuration file, if any.
DumpDefaultConfig
will dump the default configuration to stdout instead of running the application.
DryRun
will run the application with all disk-synchronization disabled. That
means HAC
wont’t save any files or changes to collection to disk.
Run
the default running behavior of the application, this is the default
behavior for HAC
.
Trait Implementations§
Source§impl Debug for RuntimeBehavior
impl Debug for RuntimeBehavior
Source§impl PartialEq for RuntimeBehavior
impl PartialEq for RuntimeBehavior
impl StructuralPartialEq for RuntimeBehavior
Auto Trait Implementations§
impl Freeze for RuntimeBehavior
impl RefUnwindSafe for RuntimeBehavior
impl Send for RuntimeBehavior
impl Sync for RuntimeBehavior
impl Unpin for RuntimeBehavior
impl UnwindSafe for RuntimeBehavior
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