Trait JobActivator

Source
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§

Source

fn invoke(&self, method: &str, arguments: &[String]) -> Result<String>

Invoke a job method with the given arguments

Source

fn can_activate(&self, method: &str) -> bool

Check if a method can be activated

Implementors§