Struct specs::common::Merge
[−]
[src]
pub struct Merge<F> { /* fields omitted */ }
A system which merges Ready
futures into the persistent storage.
Please note that your World
has to contain a component storage
for F
and F::Item
.
In case of an error, it will be added to the Errors
resource.
Methods
impl<F> Merge<F>
[src]
Trait Implementations
impl<F> Default for Merge<F>
[src]
impl<'a, T, F> System<'a> for Merge<F> where
T: Component + Send + Sync + 'static,
F: Future<Item = T, Error = BoxedErr> + Component + Send + Sync,
[src]
T: Component + Send + Sync + 'static,
F: Future<Item = T, Error = BoxedErr> + Component + Send + Sync,
type SystemData = (Entities<'a>, Read<'a, Errors>, WriteStorage<'a, F>, WriteStorage<'a, T>)
The resource bundle required to execute this system. Read more
fn run(&mut self, (entities, errors, futures, pers): Self::SystemData)
[src]
Executes the system with the required system data. Read more
fn running_time(&self) -> RunningTime
[src]
Returns a hint how long the system needs for running. This is used to optimize the way they're executed (might allow more parallelization). Read more
fn setup(&mut self, res: &mut Resources)
[src]
Sets up the Resources
using Self::SystemData::setup
.