Trait bevy_defer::AsyncEntityParam
source · 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§
Required Methods§
sourcefn fetch_signal(signals: &Signals) -> Option<Self::Signal>
fn fetch_signal(signals: &Signals) -> Option<Self::Signal>
If not found, log what’s missing and return None.
sourcefn from_async_context(
entity: Entity,
executor: &'t Arc<AsyncQueryQueue>,
signal: Self::Signal
) -> Self
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.