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]
impl<F> Merge<F>
Trait Implementations
impl<F> Default for Merge<F>
[src]
impl<F> Default for Merge<F>
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]
impl<'a, T, F> System<'a> for Merge<F> where
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]
fn run(&mut self, (entities, errors, futures, pers): Self::SystemData)
Executes the system with the required system data. Read more
fn running_time(&self) -> RunningTime
[src]
fn running_time(&self) -> RunningTime
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 accessor(&'b self) -> AccessorCow<'a, 'b, Self>
[src]
fn accessor(&'b self) -> AccessorCow<'a, 'b, Self>
Return the accessor from the [SystemData
].
fn setup(&mut self, res: &mut Resources)
[src]
fn setup(&mut self, res: &mut Resources)
Sets up the Resources
using Self::SystemData::setup
.