ChainNode

Trait ChainNode 

Source
pub trait ChainNode: Send + Sync {
    // Required methods
    fn run<'life0, 'life1, 'async_trait>(
        &'life0 self,
        context: &'life1 mut ChainContext,
    ) -> Pin<Box<dyn Future<Output = Result<(), RustChainError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn name(&self) -> &str;
    fn node_type(&self) -> &str;
}

Required Methods§

Source

fn run<'life0, 'life1, 'async_trait>( &'life0 self, context: &'life1 mut ChainContext, ) -> Pin<Box<dyn Future<Output = Result<(), RustChainError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source

fn name(&self) -> &str

Source

fn node_type(&self) -> &str

Implementors§