Trait bevy_defer::async_systems::AsyncEntityParam

source ·
pub trait AsyncEntityParam: Sized {
    type Signal: Send + Sync + 'static;

    // Required methods
    fn fetch_signal(signals: &Signals) -> Option<Self::Signal>;
    fn from_async_context(
        entity: Entity,
        queue: &Reactors,
        signal: Self::Signal,
        children: &[Entity]
    ) -> Option<Self>;
}
Expand description

A parameter of an AsyncSystem.

Required Associated Types§

source

type Signal: Send + Sync + 'static

Associated signal, or ().

Required Methods§

source

fn fetch_signal(signals: &Signals) -> Option<Self::Signal>

If not found, log what’s missing and return None.

source

fn from_async_context( entity: Entity, queue: &Reactors, signal: Self::Signal, children: &[Entity] ) -> Option<Self>

Obtain Self from the async context.

Object Safety§

This trait is not object safe.

Implementors§