[−][src]Trait exonum::helpers::fabric::Command
Command
trait is used to create sub-command for NodeBuilder
.
Required methods
fn args(&self) -> Vec<Argument>
List of command arguments.
fn name(&self) -> CommandName
Command name.
fn about(&self) -> &str
Short information about the command.
fn execute(
&self,
commands: &HashMap<CommandName, CollectedCommand>,
context: Context,
exts: &dyn Fn(Context) -> Context
) -> Feedback
&self,
commands: &HashMap<CommandName, CollectedCommand>,
context: Context,
exts: &dyn Fn(Context) -> Context
) -> Feedback
Executes the command processing code.
Arguments:
commands
- contains set of commands that can be performed on this node.context
- contains global execution context.exts
- allows to executeCommandExtensions
for the command.
Implementors
impl Command for Finalize
[src]
impl Command for Finalize
fn args(&self) -> Vec<Argument> | [src] |
fn name(&self) -> CommandName | [src] |
fn about(&self) -> &str | [src] |
fn execute( | [src] |
impl Command for GenerateCommonConfig
[src]
impl Command for GenerateCommonConfig
fn args(&self) -> Vec<Argument> | [src] |
fn name(&self) -> CommandName | [src] |
fn about(&self) -> &str | [src] |
fn execute( | [src] |
impl Command for GenerateNodeConfig
[src]
impl Command for GenerateNodeConfig
fn args(&self) -> Vec<Argument> | [src] |
fn name(&self) -> CommandName | [src] |
fn about(&self) -> &str | [src] |
fn execute( | [src] |
impl Command for GenerateTestnet
[src]
impl Command for GenerateTestnet
fn args(&self) -> Vec<Argument> | [src] |
fn name(&self) -> CommandName | [src] |
fn about(&self) -> &str | [src] |
fn execute( | [src] |
impl Command for Maintenance
[src]
impl Command for Maintenance
fn args(&self) -> Vec<Argument> | [src] |
fn name(&self) -> CommandName | [src] |
fn about(&self) -> &str | [src] |
fn execute( | [src] |
impl Command for Run
[src]
impl Command for Run
fn args(&self) -> Vec<Argument> | [src] |
fn name(&self) -> CommandName | [src] |
fn about(&self) -> &str | [src] |
fn execute( | [src] |
impl Command for RunDev
[src]
impl Command for RunDev