[−][src]Trait async_ecs::system::AsyncSystem
A System
, executed with a set of required Resource
s asynchronous.
Associated Types
type SystemData: DynamicSystemData<'a>
[src]
The resource bundle required to execute a system.
You will mostly use a tuple of system data (which also implements
SystemData
). You can also create such a resource bundle by simply
deriving SystemData
for a struct.
Every SystemData
is also a DynamicSystemData
.
Required methods
pub fn run_async(&mut self, data: Self::SystemData) -> BoxFuture<'a, ()>
[src]
Executes the system with the required system data asynchronous.
Provided methods
pub fn init(&mut self)
[src]
Initialize the systems.
pub fn accessor<'b>(&'b self) -> AccessorCow<'a, 'b, Self::SystemData>
[src]
Return the accessor from the SystemData
.
pub fn setup(&mut self, world: &mut World)
[src]
Sets up the World
using Self::SystemData::setup
.
pub fn dispose(self, world: &mut World) where
Self: Sized,
[src]
Self: Sized,
Performs clean up that requires resources from the World
.
This commonly removes components from world
which depend on external
resources.