Skip to main content

InterruptibleStep

Trait InterruptibleStep 

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

StatefulStep extension that gets the interrupt ctrl as well.

Required Methods§

Source

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

Implementors§

Source§

impl InterruptibleStep for PlainStep

Source§

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