Struct legion::systems::Executor [−][src]
pub struct Executor { /* fields omitted */ }
Expand description
Executes a sequence of systems, potentially in parallel, and then commits their command buffers.
Systems are provided in execution order. When the parallel
feature is enabled, the Executor
may run some systems in parallel. The order in which side-effects (e.g. writes to resources
or entities) are observed is maintained.
Implementations
Constructs a new executor for all systems to be run in a single stage.
Systems are provided in the order in which side-effects (e.g. writes to resources or entities) are to be observed.
Converts this executor into a vector of its component systems.
Executes all systems and then flushes their command buffers.
Executes all systems sequentially.
Only enabled with parallel is disabled
Flushes the recorded command buffers for all systems.
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for Executor
impl !UnwindSafe for Executor
Blanket Implementations
Mutably borrows from an owned value. Read more
Convert Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
. Read more
Convert Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
. Read more
Convert &Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s. Read more
Convert &mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s. Read more