6 #ifndef KAGOME_CORE_RUNTIME_MODULE_HPP 7 #define KAGOME_CORE_RUNTIME_MODULE_HPP 28 virtual outcome::result<std::shared_ptr<ModuleInstance>>
instantiate()
43 void set(std::shared_ptr<Module> module) {
52 auto module = module_;
58 std::optional<std::shared_ptr<Module>>
module_;
63 #endif // KAGOME_CORE_RUNTIME_MODULE_HPP
std::optional< std::shared_ptr< Module > > try_extract()
virtual ~Module()=default
std::optional< std::shared_ptr< Module > > module_
virtual outcome::result< std::shared_ptr< ModuleInstance > > instantiate() const =0