perseus/turbine/tinker.rs
1use super::Turbine;
2use crate::{
3 errors::PluginError, i18n::TranslationsManager, plugins::PluginAction, stores::MutableStore,
4};
5
6impl<M: MutableStore, T: TranslationsManager> Turbine<M, T> {
7 /// Runs tinker plugin actions.
8 pub fn tinker(&self) -> Result<(), PluginError> {
9 // Run all the tinker actions
10 // Note: this is deliberately synchronous, tinker actions that need a
11 // multithreaded async runtime should probably be making their own engines!
12 self.plugins
13 .functional_actions
14 .tinker
15 .run((), self.plugins.get_plugin_data())?;
16
17 Ok(())
18 }
19}