Trait StatePerformer
Source pub trait StatePerformer<T>: Send + 'static {
// Required methods
fn perform<'life0, 'life1, 'async_trait>(
&'life0 mut self,
task: T,
session: &'life1 mut HybrydSession,
) -> Pin<Box<dyn Future<Output = Transition<T>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn fallback<'life0, 'async_trait>(
&'life0 mut self,
task: T,
err: Error,
) -> Pin<Box<dyn Future<Output = (T, NextState<T>)> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
}