summaryrefslogtreecommitdiffstats
path: root/crates
diff options
context:
space:
mode:
authorMarcel Müller <m.mueller@ifm.com>2022-04-13 09:06:46 +0200
committerMarcel Müller <m.mueller@ifm.com>2022-04-13 09:06:46 +0200
commit8697a6e1e1b579d606b7c07e7fbde54adc6a71af (patch)
treef7b4a04ccd0da6f8d1adb260efb2c9e191c94827 /crates
parent1520661de959b4a547a7fdc7810fe09793fbef8d (diff)
Rename plugin setup to start
'Setup' is not very clear in where it would be called in its lifecycle. Start makes it clear that this is the starting point of a plugins lifecycle. Signed-off-by: Marcel Müller <m.mueller@ifm.com>
Diffstat (limited to 'crates')
-rw-r--r--crates/core/tedge_api/src/plugin.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/core/tedge_api/src/plugin.rs b/crates/core/tedge_api/src/plugin.rs
index 8d24fc38..96c630be 100644
--- a/crates/core/tedge_api/src/plugin.rs
+++ b/crates/core/tedge_api/src/plugin.rs
@@ -304,7 +304,7 @@ pub trait Plugin: Sync + Send + DowncastSync {
///
/// This function will be called by the core of thin-edge before any message-passing starts.
/// The plugin is free to for example spawn up background tasks here.
- async fn setup(&mut self) -> Result<(), PluginError>;
+ async fn start(&mut self) -> Result<(), PluginError>;
/// Gracefully handle shutdown
///