pub fn inject_plugin_context() -> Arc<dyn PluginContext + Send + Sync>
Expand description
Returns the static plugin context.
pub struct MyPluginImpl {
#[component(default = "inject_plugin_context")]
context: std::sync::Arc<dyn reactive_graph_plugin_api::PluginContext + Send + Sync>,
}
ยงPanics
Panics if the inject_plugin_context was called before construct_plugin!