Skip to main content

with_context

Function with_context 

Source
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).