pub fn with_context<F, R>(f: F) -> Option<R>where
F: FnOnce(&PluginContext) -> R,Expand description
Access the current plugin context.
Returns None if no context is set (i.e., not running inside a plugin).
pub fn with_context<F, R>(f: F) -> Option<R>where
F: FnOnce(&PluginContext) -> R,Access the current plugin context.
Returns None if no context is set (i.e., not running inside a plugin).