Enum bevy_ecs::schedule::SystemDescriptor [−][src]
Encapsulates a system and information on when it run in a SystemStage
.
Systems can be inserted into 4 different groups within the stage:
- Parallel, accepts non-exclusive systems.
- At start, accepts exclusive systems; runs before parallel systems.
- Before commands, accepts exclusive systems; runs after parallel systems, but before their command buffers are applied.
- At end, accepts exclusive systems; runs after parallel systems’ command buffers have been applied.
Systems can have one or more labels attached to them; other systems in the same group
can then specify that they have to run before or after systems with that label using the
before
and after
methods.
Example
#[derive(SystemLabel, Debug, Clone, PartialEq, Eq, Hash)] struct Something; SystemStage::parallel() .with_system(do_something.system().label(Something)) .with_system(do_the_other_thing.system().after(Something)) .with_system(do_something_else.exclusive_system().at_end());
Variants
Parallel(ParallelSystemDescriptor)
Exclusive(ExclusiveSystemDescriptor)
Trait Implementations
impl From<Box<dyn System<Out = (), In = ()> + 'static, Global>> for SystemDescriptor
[src]
fn from(system: BoxedSystem<(), ()>) -> Self
[src]
impl From<ExclusiveSystemCoerced> for SystemDescriptor
[src]
fn from(system: ExclusiveSystemCoerced) -> Self
[src]
impl From<ExclusiveSystemDescriptor> for SystemDescriptor
[src]
fn from(descriptor: ExclusiveSystemDescriptor) -> Self
[src]
impl From<ExclusiveSystemFn> for SystemDescriptor
[src]
fn from(system: ExclusiveSystemFn) -> Self
[src]
impl From<ParallelSystemDescriptor> for SystemDescriptor
[src]
fn from(descriptor: ParallelSystemDescriptor) -> Self
[src]
impl<S> From<S> for SystemDescriptor where
S: System<In = (), Out = ()>,
[src]
S: System<In = (), Out = ()>,
Auto Trait Implementations
impl !RefUnwindSafe for SystemDescriptor
impl Send for SystemDescriptor
impl Sync for SystemDescriptor
impl Unpin for SystemDescriptor
impl !UnwindSafe for SystemDescriptor
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Component for T where
T: 'static + Send + Sync,
[src]
T: 'static + Send + Sync,
impl<T> Downcast for T where
T: Any,
[src]
T: Any,
pub fn into_any(self: Box<T, Global>) -> Box<dyn Any + 'static, Global>
[src]
pub fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
[src]
pub fn as_any(&self) -> &(dyn Any + 'static)
[src]
pub fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
[src]
impl<T> DowncastSync for T where
T: Any + Send + Sync,
[src]
T: Any + Send + Sync,
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,