pub trait AsyncEntityParam<'t>: Sized {
    type Signal: Send + Sync + 'static;

    // Required methods
    fn fetch_signal(signals: &Signals) -> Option<Self::Signal>;
    fn from_async_context(
        entity: Entity,
        executor: &'t Arc<AsyncQueryQueue>,
        signal: Self::Signal
    ) -> Self;
}
Expand description

A parameter of an AsyncSystem.

Required Associated Types§

source

type Signal: Send + Sync + 'static

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, executor: &'t Arc<AsyncQueryQueue>, signal: Self::Signal ) -> Self

Obtain Self from the async context.

Object Safety§

This trait is not object safe.

Implementors§

source§

impl<'t> AsyncEntityParam<'t> for &'t AsyncWorldMut

§

type Signal = ()

source§

impl<'t> AsyncEntityParam<'t> for AsyncEntityMut<'t>

§

type Signal = ()

source§

impl<'t> AsyncEntityParam<'t> for AsyncWorldMut

§

type Signal = ()

source§

impl<'t, C: Component> AsyncEntityParam<'t> for AsyncComponent<'t, C>

§

type Signal = ()

source§

impl<'t, P: SystemParam> AsyncEntityParam<'t> for AsyncSystemParam<'t, P>

§

type Signal = ()

source§

impl<'t, R: Resource> AsyncEntityParam<'t> for AsyncResource<'t, R>

§

type Signal = ()

source§

impl<'t, T: QueryData, F: QueryFilter> AsyncEntityParam<'t> for AsyncEntityQuery<'_, T, F>

§

type Signal = ()

source§

impl<'t, T: SignalId> AsyncEntityParam<'t> for Receiver<T>

§

type Signal = Arc<SignalInner<Object>>

source§

impl<'t, T: SignalId> AsyncEntityParam<'t> for Sender<T>

§

type Signal = Arc<SignalInner<Object>>