Skip to main content

ComponentInvoker

Trait ComponentInvoker 

Source
pub trait ComponentInvoker: Send + Sync {
    // Required methods
    fn get_component(&self, name: &str) -> Option<Component>;
    fn invoke<'a>(
        &'a self,
        component_name: &'a str,
        function_name: &'a str,
        args: Vec<Value>,
    ) -> Pin<Box<dyn Future<Output = Result<Value>> + Send + 'a>>;
}
Expand description

Invoke components by name.

Required Methods§

Source

fn get_component(&self, name: &str) -> Option<Component>

Source

fn invoke<'a>( &'a self, component_name: &'a str, function_name: &'a str, args: Vec<Value>, ) -> Pin<Box<dyn Future<Output = Result<Value>> + Send + 'a>>

Implementors§