pub trait JobActivator: Send + Sync {
// Required methods
fn invoke(&self, method: &str, arguments: &[String]) -> Result<String>;
fn can_activate(&self, method: &str) -> bool;
}Expand description
Trait for activating and invoking job methods
This trait provides an abstraction for different ways of invoking job methods. Implementations might use reflection, function registries, or other mechanisms.
Required Methods§
Sourcefn invoke(&self, method: &str, arguments: &[String]) -> Result<String>
fn invoke(&self, method: &str, arguments: &[String]) -> Result<String>
Invoke a job method with the given arguments
Sourcefn can_activate(&self, method: &str) -> bool
fn can_activate(&self, method: &str) -> bool
Check if a method can be activated