pub enum DaemonCommands {
Run,
Start,
Stop,
Oneshot {
repo_path: PathBuf,
},
Health,
Metrics,
QueueJob {
repo_path: PathBuf,
job: CliJobKind,
},
}Variants§
Run
Start the daemon in the current process (foreground).
Start
Start the daemon as a detached background process.
Stop
Stop a running daemon gracefully.
Oneshot
Run daemon for a single repo, service queued jobs, then exit.
Health
Fetch daemon health from a running instance.
Metrics
Print daemon metrics and exit.
QueueJob
Request that a background job runs immediately.
Trait Implementations§
Source§impl Debug for DaemonCommands
impl Debug for DaemonCommands
Source§impl FromArgMatches for DaemonCommands
impl FromArgMatches for DaemonCommands
Source§fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
Source§fn from_arg_matches_mut(
__clap_arg_matches: &mut ArgMatches,
) -> Result<Self, Error>
fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches, ) -> Result<Self, Error>
Source§fn update_from_arg_matches(
&mut self,
__clap_arg_matches: &ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, ) -> Result<(), Error>
Assign values from
ArgMatches to self.Source§fn update_from_arg_matches_mut<'b>(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut<'b>( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
Assign values from
ArgMatches to self.Source§impl Subcommand for DaemonCommands
impl Subcommand for DaemonCommands
Source§fn augment_subcommands<'b>(__clap_app: Command) -> Command
fn augment_subcommands<'b>(__clap_app: Command) -> Command
Source§fn augment_subcommands_for_update<'b>(__clap_app: Command) -> Command
fn augment_subcommands_for_update<'b>(__clap_app: Command) -> Command
Append to
Command so it can instantiate self via
FromArgMatches::update_from_arg_matches_mut Read moreSource§fn has_subcommand(__clap_name: &str) -> bool
fn has_subcommand(__clap_name: &str) -> bool
Test whether
Self can parse a specific subcommandAuto Trait Implementations§
impl Freeze for DaemonCommands
impl RefUnwindSafe for DaemonCommands
impl Send for DaemonCommands
impl Sync for DaemonCommands
impl Unpin for DaemonCommands
impl UnwindSafe for DaemonCommands
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