Module specs::common [] [src]

Common functionality between crates using specs. Common functionality you might need when using Specs.

At the moment, this module provides two types:

  • Errors: A resource you can use to store errors that occurred outside of the ECS but were catched inside, therefore should be handled by the user

  • Merge: A system generic over T which automatically merges Ready futures into the component storage for T.

To make use of these features, you need to ask for the common feature like this:

[dependencies.specs]
# version = "..."
features = ["common"]

Structs

DrainErrors

A draining iterator for Errors. This is the return value of Errors::drain.

Errors

A resource you can use to store errors that occurred outside of the ECS but were catched inside, therefore should be handled by the user.

Merge

A system which merges Ready futures into the persistent storage. Please note that your World has to contain a component storage for F and F::Item.

Type Definitions

BoxedFuture

A boxed, thread-safe future with T as item and BoxedErr as error type.