diff options
author | Matthias Beyer <matthias.beyer@ifm.com> | 2022-08-13 09:43:13 +0200 |
---|---|---|
committer | Matthias Beyer <matthias.beyer@ifm.com> | 2022-08-30 13:54:48 +0200 |
commit | 88d2ccb9778f8aa6fd0bd99fea3c60e035e4d427 (patch) | |
tree | 43077c107bb77e97cf390ea5f10fe62b1badeb16 | |
parent | f2621287047e93a87c65d45b4420aaf2bf2dbc24 (diff) |
Add doc for Reactor interfacepost-merge/tedge_core/doc
Signed-off-by: Matthias Beyer <matthias.beyer@ifm.com>
-rw-r--r-- | crates/core/tedge_core/src/reactor.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/crates/core/tedge_core/src/reactor.rs b/crates/core/tedge_core/src/reactor.rs index 07d06c01..7e56f1c4 100644 --- a/crates/core/tedge_core/src/reactor.rs +++ b/crates/core/tedge_core/src/reactor.rs @@ -284,6 +284,7 @@ impl Reactor { Ok(()) } + /// Get the configuration of a plugin by plugin name fn get_config_for_plugin<'a>(&'a self, plugin_name: &str) -> Option<&'a InstanceConfiguration> { trace!( plugin.name = plugin_name, @@ -296,6 +297,7 @@ impl Reactor { .map(|cfg| cfg.configuration()) } + /// Find the plugin builder for a plugin kind #[allow(clippy::borrowed_box)] fn find_plugin_builder<'a>( &'a self, @@ -311,6 +313,7 @@ impl Reactor { .map(|(_, pb)| pb) } + /// Instantiate a plugin async fn instantiate_plugin( &self, plugin_name: &str, |