Function inject_plugin_context_checked

Source
pub fn inject_plugin_context_checked() -> Option<Arc<dyn PluginContext + Send + Sync>>
Expand description

Returns the static plugin context if called after construct_plugin or an empty option if called before construct_plugin.

pub struct MyPluginImpl {
  #[component(default = "inject_plugin_context_checked")]
  context: Option<std::sync::Arc<dyn reactive_graph_plugin_api::PluginContext + Send + Sync>>,
}