Type Alias valence::ecs::schedule::SystemConfigs
pub type SystemConfigs = NodeConfigs<Box<dyn System<In = (), Out = ()>>>;
Expand description
A collection of SystemConfig
.
Aliased Type§
enum SystemConfigs {
NodeConfig(NodeConfig<Box<dyn System<In = (), Out = ()>>>),
Configs {
configs: Vec<NodeConfigs<Box<dyn System<In = (), Out = ()>>>>,
collective_conditions: Vec<Box<dyn ReadOnlySystem<In = (), Out = bool>>>,
chained: Chain,
},
}
Variants§
NodeConfig(NodeConfig<Box<dyn System<In = (), Out = ()>>>)
Configuration for a single node.
Configs
Configuration for a tuple of nested Configs
instances.
Implementations
§impl<T> NodeConfigs<T>
impl<T> NodeConfigs<T>
pub fn in_set_inner(&mut self, set: Interned<dyn SystemSet>)
pub fn in_set_inner(&mut self, set: Interned<dyn SystemSet>)
Adds a new boxed system set to the systems.
pub fn run_if_dyn(
&mut self,
condition: Box<dyn ReadOnlySystem<In = (), Out = bool>>,
)
pub fn run_if_dyn( &mut self, condition: Box<dyn ReadOnlySystem<In = (), Out = bool>>, )
Adds a new boxed run condition to the systems.
This is useful if you have a run condition whose concrete type is unknown.
Prefer run_if
for run conditions whose type is known at compile time.
Trait Implementations
§impl IntoSystemConfigs<()> for NodeConfigs<Box<dyn System<In = (), Out = ()>>>
impl IntoSystemConfigs<()> for NodeConfigs<Box<dyn System<In = (), Out = ()>>>
§fn into_configs(self) -> NodeConfigs<Box<dyn System<In = (), Out = ()>>>
fn into_configs(self) -> NodeConfigs<Box<dyn System<In = (), Out = ()>>>
Convert into a
SystemConfigs
.§fn in_set(
self,
set: impl SystemSet,
) -> NodeConfigs<Box<dyn System<In = (), Out = ()>>>
fn in_set( self, set: impl SystemSet, ) -> NodeConfigs<Box<dyn System<In = (), Out = ()>>>
Add these systems to the provided
set
.§fn before<M>(
self,
set: impl IntoSystemSet<M>,
) -> NodeConfigs<Box<dyn System<In = (), Out = ()>>>
fn before<M>( self, set: impl IntoSystemSet<M>, ) -> NodeConfigs<Box<dyn System<In = (), Out = ()>>>
§fn after<M>(
self,
set: impl IntoSystemSet<M>,
) -> NodeConfigs<Box<dyn System<In = (), Out = ()>>>
fn after<M>( self, set: impl IntoSystemSet<M>, ) -> NodeConfigs<Box<dyn System<In = (), Out = ()>>>
§fn before_ignore_deferred<M>(
self,
set: impl IntoSystemSet<M>,
) -> NodeConfigs<Box<dyn System<In = (), Out = ()>>>
fn before_ignore_deferred<M>( self, set: impl IntoSystemSet<M>, ) -> NodeConfigs<Box<dyn System<In = (), Out = ()>>>
Run before all systems in
set
. Read more§fn after_ignore_deferred<M>(
self,
set: impl IntoSystemSet<M>,
) -> NodeConfigs<Box<dyn System<In = (), Out = ()>>>
fn after_ignore_deferred<M>( self, set: impl IntoSystemSet<M>, ) -> NodeConfigs<Box<dyn System<In = (), Out = ()>>>
Run after all systems in
set
. Read more§fn distributive_run_if<M>(
self,
condition: impl Condition<M> + Clone,
) -> NodeConfigs<Box<dyn System<In = (), Out = ()>>>
fn distributive_run_if<M>( self, condition: impl Condition<M> + Clone, ) -> NodeConfigs<Box<dyn System<In = (), Out = ()>>>
Add a run condition to each contained system. Read more
§fn run_if<M>(
self,
condition: impl Condition<M>,
) -> NodeConfigs<Box<dyn System<In = (), Out = ()>>>
fn run_if<M>( self, condition: impl Condition<M>, ) -> NodeConfigs<Box<dyn System<In = (), Out = ()>>>
§fn ambiguous_with<M>(
self,
set: impl IntoSystemSet<M>,
) -> NodeConfigs<Box<dyn System<In = (), Out = ()>>>
fn ambiguous_with<M>( self, set: impl IntoSystemSet<M>, ) -> NodeConfigs<Box<dyn System<In = (), Out = ()>>>
Suppress warnings and errors that would result from these systems having ambiguities
(conflicting access but indeterminate order) with systems in
set
.§fn ambiguous_with_all(self) -> NodeConfigs<Box<dyn System<In = (), Out = ()>>>
fn ambiguous_with_all(self) -> NodeConfigs<Box<dyn System<In = (), Out = ()>>>
Suppress warnings and errors that would result from these systems having ambiguities
(conflicting access but indeterminate order) with any other system.
§fn chain(self) -> NodeConfigs<Box<dyn System<In = (), Out = ()>>>
fn chain(self) -> NodeConfigs<Box<dyn System<In = (), Out = ()>>>
Treat this collection as a sequence of systems. Read more
§fn chain_ignore_deferred(
self,
) -> NodeConfigs<Box<dyn System<In = (), Out = ()>>>
fn chain_ignore_deferred( self, ) -> NodeConfigs<Box<dyn System<In = (), Out = ()>>>
Treat this collection as a sequence of systems. Read more