diff options
author | Marcel Müller <m.mueller@ifm.com> | 2022-03-21 09:35:25 +0100 |
---|---|---|
committer | Marcel Müller <m.mueller@ifm.com> | 2022-03-21 09:35:25 +0100 |
commit | 4bcd48f5d4eb3db453ae94f2c10f8a4f44fb7283 (patch) | |
tree | 1606991479ff16952f40de3c153a6ec350b7a769 /crates/core/tedge_api/examples | |
parent | 196f7600234bc131956fad295959928153ded638 (diff) |
Separate Message/ReceiverBundle
Previously they were mixed up, having them separate makes it clear that
the bundle made by the `make_receiver_bundle` macro are only meant to be
used for _receiving_ plugins.
Signed-off-by: Marcel Müller <m.mueller@ifm.com>
Diffstat (limited to 'crates/core/tedge_api/examples')
-rw-r--r-- | crates/core/tedge_api/examples/heartbeat.rs | 4 |
1 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 d2fc2f21..c882b99f 100644 --- a/crates/core/tedge_api/examples/heartbeat.rs +++ b/crates/core/tedge_api/examples/heartbeat.rs @@ -171,7 +171,7 @@ struct CriticalServiceBuilder; // declare a set of messages that the CriticalService can receive. // In this example, it can only receive a Heartbeat. -tedge_api::make_message_bundle!(struct HeartbeatMessages(Heartbeat)); +tedge_api::make_receiver_bundle!(struct HeartbeatMessages(Heartbeat)); #[async_trait] impl<PD: PluginDirectory> PluginBuilder<PD> for CriticalServiceBuilder { @@ -300,7 +300,7 @@ impl Communication { } impl PluginDirectory for Communication { - fn get_address_for<MB: tedge_api::plugin::MessageBundle>( + fn get_address_for<MB: tedge_api::address::ReceiverBundle>( &self, name: &str, ) -> Result<Address<MB>, PluginError> { |