[][src]Trait specs_task::TaskFactory

pub trait TaskFactory {
    fn create_task(&self, user: &TaskUser) -> Entity;
}

Implemented by all nodes of a TaskGraph. Has a blanket impl that should work for most TaskComponents.

Required methods

fn create_task(&self, user: &TaskUser) -> Entity

Loading content...

Implementations on Foreign Types

impl TaskFactory for Entity[src]

Loading content...

Implementors

impl<'a, T: 'static + Clone + TaskComponent<'a> + Send + Sync> TaskFactory for T[src]

Loading content...