Skip to main content

Module system_condition

Module system_condition 

Source

Structs§

And
Runs only while both A and B would run.
Conditional
Wraps a System, skipping it for a tick whenever C::should_run returns false.
ConditionalFn
Wraps a System, skipping it for a tick whenever cond returns false. The closure-based counterpart to Conditional — see RunIfFnExt::run_if_fn.
ConditionalSet
Or
Runs while either A or B would run.
ResourceExists
Runs only while resource T exists.
RunIfFnSystem
RunIfSystem

Traits§

RunCondition
A predicate checked before a system runs. If should_run returns false, the wrapped system’s body is skipped entirely for that tick — its SystemParams are never fetched.
RunIfExt
Adds .run_if to anything convertible into a System, gating it on a RunCondition.
RunIfFnExt
Adds .run_if_fn to anything convertible into a System, gating it on a plain closure instead of a RunCondition type — no struct/impl boilerplate needed for a one-off check:
SystemSetRunIfExt
Adds .run_if to an entire IntoSystemSet tuple at once, applying the same condition to every system in it.