pub enum ScheduleConfigs<T: Schedulable> {
ScheduleConfig(ScheduleConfig<T>),
Configs {
configs: Vec<ScheduleConfigs<T>>,
collective_conditions: Vec<BoxedCondition>,
metadata: T::GroupMetadata,
},
}
Expand description
Single or nested configurations for Schedulable
s.
Variants§
ScheduleConfig(ScheduleConfig<T>)
Configuration for a single Schedulable
.
Configs
Configuration for a tuple of nested Configs
instances.
Fields
§
configs: Vec<ScheduleConfigs<T>>
Configuration for each element of the tuple.
§
collective_conditions: Vec<BoxedCondition>
Run conditions applied to everything in the tuple.
§
metadata: T::GroupMetadata
Metadata to be applied to all elements in the tuple.
Implementations§
Source§impl<T: Schedulable<Metadata = GraphInfo, GroupMetadata = Chain>> ScheduleConfigs<T>
impl<T: Schedulable<Metadata = GraphInfo, GroupMetadata = Chain>> ScheduleConfigs<T>
Sourcepub fn in_set_inner(&mut self, set: InternedSystemSet)
pub fn in_set_inner(&mut self, set: InternedSystemSet)
Adds a new boxed system set to the systems.
Sourcepub fn run_if_dyn(&mut self, condition: BoxedCondition)
pub fn run_if_dyn(&mut self, condition: BoxedCondition)
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§
Source§impl<T: Schedulable<Metadata = GraphInfo, GroupMetadata = Chain>> IntoScheduleConfigs<T, ()> for ScheduleConfigs<T>
impl<T: Schedulable<Metadata = GraphInfo, GroupMetadata = Chain>> IntoScheduleConfigs<T, ()> for ScheduleConfigs<T>
Source§fn into_configs(self) -> Self
fn into_configs(self) -> Self
Convert into a
ScheduleConfigs
.Source§fn before<M>(self, set: impl IntoSystemSet<M>) -> Self
fn before<M>(self, set: impl IntoSystemSet<M>) -> Self
Source§fn after<M>(self, set: impl IntoSystemSet<M>) -> Self
fn after<M>(self, set: impl IntoSystemSet<M>) -> Self
Source§fn before_ignore_deferred<M>(self, set: impl IntoSystemSet<M>) -> Self
fn before_ignore_deferred<M>(self, set: impl IntoSystemSet<M>) -> Self
Run before all systems in
set
. Read moreSource§fn after_ignore_deferred<M>(self, set: impl IntoSystemSet<M>) -> Self
fn after_ignore_deferred<M>(self, set: impl IntoSystemSet<M>) -> Self
Run after all systems in
set
. Read moreSource§fn distributive_run_if<M>(
self,
condition: impl Condition<M> + Clone,
) -> ScheduleConfigs<T>
fn distributive_run_if<M>( self, condition: impl Condition<M> + Clone, ) -> ScheduleConfigs<T>
Add a run condition to each contained system. Read more
Source§fn run_if<M>(self, condition: impl Condition<M>) -> ScheduleConfigs<T>
fn run_if<M>(self, condition: impl Condition<M>) -> ScheduleConfigs<T>
Source§fn ambiguous_with<M>(self, set: impl IntoSystemSet<M>) -> Self
fn ambiguous_with<M>(self, set: impl IntoSystemSet<M>) -> Self
Suppress warnings and errors that would result from these systems having ambiguities
(conflicting access but indeterminate order) with systems in
set
.Source§fn ambiguous_with_all(self) -> Self
fn ambiguous_with_all(self) -> Self
Suppress warnings and errors that would result from these systems having ambiguities
(conflicting access but indeterminate order) with any other system.
Source§fn chain_ignore_deferred(self) -> Self
fn chain_ignore_deferred(self) -> Self
Treat this collection as a sequence of systems. Read more
Auto Trait Implementations§
impl<T> Freeze for ScheduleConfigs<T>
impl<T> !RefUnwindSafe for ScheduleConfigs<T>
impl<T> Send for ScheduleConfigs<T>
impl<T> Sync for ScheduleConfigs<T>
impl<T> Unpin for ScheduleConfigs<T>
impl<T> !UnwindSafe for ScheduleConfigs<T>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Converts
Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
, which can then be
downcast
into Box<dyn ConcreteType>
where ConcreteType
implements Trait
.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Converts
Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
, which can then be further
downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Converts
&Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Converts
&mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s.