Skip to main content

StatefulStep

Trait StatefulStep 

Source
pub trait StatefulStep:
    Send
    + Sync
    + 'static {
    // Required method
    fn run<'life0, 'life1, 'async_trait>(
        &'life0 self,
        state: &'life1 RunState,
    ) -> Pin<Box<dyn Future<Output = Result<Vec<(String, Value)>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
}

Required Methods§

Source

fn run<'life0, 'life1, 'async_trait>( &'life0 self, state: &'life1 RunState, ) -> Pin<Box<dyn Future<Output = Result<Vec<(String, Value)>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Implementors§

Source§

impl<F, Fut> StatefulStep for FnStatefulStep<F>
where F: Fn(&RunState) -> Fut + Send + Sync + 'static, Fut: Future<Output = Result<Vec<(String, Value)>>> + Send + 'static,