[][src]Trait jackhammer::ActionFactory

pub trait ActionFactory: Send + 'static {
    fn next_action(&mut self) -> BoxFuture<'static, Result<()>>;
}

Required methods

fn next_action(&mut self) -> BoxFuture<'static, Result<()>>

Loading content...

Implementations

impl dyn ActionFactory[src]

pub fn from_fn<F, Fut>(factory_fn: F) -> impl ActionFactory where
    F: FnMut() -> Fut + Send + Sync + 'static,
    Fut: Future<Output = Result<()>> + Send + 'static, 
[src]

Implementors

impl<F, Fut> ActionFactory for F where
    F: FnMut() -> Fut + Send + Sync + 'static,
    Fut: Future<Output = Result<()>> + Send + 'static, 
[src]

Loading content...