diff options
author | Marcel Müller <m.mueller@ifm.com> | 2022-03-21 09:37:08 +0100 |
---|---|---|
committer | Marcel Müller <m.mueller@ifm.com> | 2022-03-21 09:37:08 +0100 |
commit | 065762123d9d85e8d02256ed6c698581f6f267ef (patch) | |
tree | e76ede156d57cdc268ea205b5121352311062e3d /crates/core | |
parent | 4bcd48f5d4eb3db453ae94f2c10f8a4f44fb7283 (diff) |
Rename handler creation to reflect the operation
Signed-off-by: Marcel Müller <m.mueller@ifm.com>
Diffstat (limited to 'crates/core')
-rw-r--r-- | crates/core/tedge_api/examples/heartbeat.rs | 2 | ||||
-rw-r--r-- | crates/core/tedge_api/src/plugin.rs | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/crates/core/tedge_api/examples/heartbeat.rs b/crates/core/tedge_api/examples/heartbeat.rs index c882b99f..3a680b41 100644 --- a/crates/core/tedge_api/examples/heartbeat.rs +++ b/crates/core/tedge_api/examples/heartbeat.rs @@ -183,7 +183,7 @@ impl<PD: PluginDirectory> PluginBuilder<PD> for CriticalServiceBuilder { where Self: Sized, { - HandleTypes::get_handlers_for::<(Heartbeat,), CriticalService>() + HandleTypes::declare_handlers_for::<(Heartbeat,), CriticalService>() } async fn verify_configuration( diff --git a/crates/core/tedge_api/src/plugin.rs b/crates/core/tedge_api/src/plugin.rs index 3797f830..3be6bacb 100644 --- a/crates/core/tedge_api/src/plugin.rs +++ b/crates/core/tedge_api/src/plugin.rs @@ -355,7 +355,7 @@ impl HandleTypes { /// XX | println!("{:#?}", HandleTypes::get_handlers_for::<(Heartbeat,), HeartbeatPlugin>()); /// | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `Handle<Heartbeat>` is not implemented for `HeartbeatPlugin` /// ``` - pub fn get_handlers_for<M: MessageBundle, Plugin: DoesHandle<M>>() -> HandleTypes { + pub fn declare_handlers_for<M: MessageBundle, Plugin: DoesHandle<M>>() -> HandleTypes { HandleTypes(M::get_ids()) } |