Node

Trait Node 

Source
pub trait Node: Send + Sync {
    // Required methods
    fn id(&self) -> &str;
    fn node_type(&self) -> NodeType;
    fn run<'life0, 'life1, 'async_trait>(
        &'life0 self,
        ctx: &'life1 mut Context,
    ) -> Pin<Box<dyn Future<Output = RuleResult> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
}

Required Methods§

Source

fn id(&self) -> &str

Source

fn node_type(&self) -> NodeType

Source

fn run<'life0, 'life1, 'async_trait>( &'life0 self, ctx: &'life1 mut Context, ) -> Pin<Box<dyn Future<Output = RuleResult> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Implementors§