From ba91e7ee263fb2d3aba89271db15508c784ab196 Mon Sep 17 00:00:00 2001 From: Matthias Beyer Date: Tue, 10 Nov 2015 19:28:19 +0100 Subject: [PATCH] The module itself has to be populate the Command instance This will be done by the module returning a lambda to build the command instance. --- src/module/mod.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/module/mod.rs b/src/module/mod.rs index af86ce91..d0f711f2 100644 --- a/src/module/mod.rs +++ b/src/module/mod.rs @@ -51,5 +51,9 @@ pub trait Module { fn execute(&self, rt : &Runtime) -> ModuleResult; fn shutdown(&self, rt : &Runtime) -> ModuleResult; + fn getCommandBuilder() -> F + where F: FnOnce(StorageBackend) -> T, + T: ExecutableCommand; + }