Struct bdrck_params::command::ExecutableCommand
[−]
[src]
pub struct ExecutableCommand<'a, E> { pub command: Command, // some fields omitted }
An ExecutableCommand
is a Command alongside a callback function which can
be called to execute the command in question.
Fields
command: Command
Methods
impl<'a, E> ExecutableCommand<'a, E>
[src]
fn new(
command: Command,
callback: CommandCallback<'a, E>
) -> ExecutableCommand<'a, E>
command: Command,
callback: CommandCallback<'a, E>
) -> ExecutableCommand<'a, E>
fn execute(
&mut self,
options: HashMap<String, String>,
flags: HashMap<String, bool>,
arguments: HashMap<String, Vec<String>>
) -> CommandResult<E>
&mut self,
options: HashMap<String, String>,
flags: HashMap<String, bool>,
arguments: HashMap<String, Vec<String>>
) -> CommandResult<E>