pub trait CommonUsesTaskExt {
// Required methods
fn spawn(&self, bundle: impl Bundle) -> WithWorld<Entity> ⓘ;
fn despawn(&self, e: Entity) -> WithWorld<bool> ⓘ;
fn load_asset<'a, A: Asset>(
&self,
path: impl Into<AssetPath<'a>> + Send + 'static,
) -> impl Future<Output = Result<Handle<A>, AssetLoadError>>;
fn send_event<E: Event>(&self, event: E) -> WithWorld<()> ⓘ;
}
Required Methods§
fn spawn(&self, bundle: impl Bundle) -> WithWorld<Entity> ⓘ
fn despawn(&self, e: Entity) -> WithWorld<bool> ⓘ
fn load_asset<'a, A: Asset>( &self, path: impl Into<AssetPath<'a>> + Send + 'static, ) -> impl Future<Output = Result<Handle<A>, AssetLoadError>>
fn send_event<E: Event>(&self, event: E) -> WithWorld<()> ⓘ
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.