Trait starbase::SystemFunc

source ·
pub trait SystemFunc: Send + Sync {
    // Required method
    fn call<'life0, 'async_trait>(
        &'life0 self,
        states: States,
        resources: Resources,
        emitters: Emitters
    ) -> Pin<Box<dyn Future<Output = SystemResult> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}

Required Methods§

source

fn call<'life0, 'async_trait>( &'life0 self, states: States, resources: Resources, emitters: Emitters ) -> Pin<Box<dyn Future<Output = SystemResult> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait,

Implementors§

source§

impl<T, F> SystemFunc for Twhere T: Fn(States, Resources, Emitters) -> F + Send + Sync, F: Future<Output = SystemResult> + Send + 'static,