Expand description
Notes about resources:
- Resources MUST implement default
- Resources MAY use Mutex<Arc
> to be Send+Sync - Resources MUST be ’static
Structs§
- Dispatcher
- A dispatcher is used to execute a collection of
Systemin order and possibly in parallel usingWorld’s resources. A dispatcher automatically avoids mutable borrow collisions which would normally lead to data corruption, dead locks and more. - Dispatcher
Builder - A builder that accumulates systems to be inserted into a
Dispatcher. - System
- Struct used to run a system function using the world.
This struct is also used internally by the
Dispatcherto create a coherent execution sequence. - World
- Contains data indexed by type. World allows to dynamically enforce the rust rules of borrowing and ownership at runtime:
Traits§
- Into
System - Converts a function into a
System. It is required to execute a function automatically fromWorld’s resources. This trait is automatically implemented for functions taking 12 arguments (22 if using thebig_systemsfeature) or less where: