Enum golem_cli::worker::WorkerSubcommand
source · pub enum WorkerSubcommand {
Add {
template_id_or_name: TemplateIdOrName,
worker_name: WorkerName,
env: Vec<(String, String)>,
args: Vec<String>,
},
InvocationKey {
template_id_or_name: TemplateIdOrName,
worker_name: WorkerName,
},
InvokeAndAwait {
template_id_or_name: TemplateIdOrName,
worker_name: WorkerName,
invocation_key: Option<InvocationKey>,
function: String,
parameters: Value,
use_stdio: bool,
},
Invoke {
template_id_or_name: TemplateIdOrName,
worker_name: WorkerName,
function: String,
parameters: Value,
},
Connect {
template_id_or_name: TemplateIdOrName,
worker_name: WorkerName,
},
Interrupt {
template_id_or_name: TemplateIdOrName,
worker_name: WorkerName,
},
SimulatedCrash {
template_id_or_name: TemplateIdOrName,
worker_name: WorkerName,
},
Delete {
template_id_or_name: TemplateIdOrName,
worker_name: WorkerName,
},
Get {
template_id_or_name: TemplateIdOrName,
worker_name: WorkerName,
},
}
Variants§
Add
InvocationKey
InvokeAndAwait
Fields
§
template_id_or_name: TemplateIdOrName
§
worker_name: WorkerName
§
invocation_key: Option<InvocationKey>
Invoke
Connect
Interrupt
SimulatedCrash
Delete
Get
Trait Implementations§
source§impl Debug for WorkerSubcommand
impl Debug for WorkerSubcommand
source§impl FromArgMatches for WorkerSubcommand
impl FromArgMatches for WorkerSubcommand
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 WorkerSubcommand
impl Subcommand for WorkerSubcommand
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
source§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 RefUnwindSafe for WorkerSubcommand
impl Send for WorkerSubcommand
impl Sync for WorkerSubcommand
impl Unpin for WorkerSubcommand
impl UnwindSafe for WorkerSubcommand
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