Module error

Module error 

Source
Expand description

All error types.

Structs§

MissingComponent
Returned by get when an entity does not have a component in the requested storage(s).

Enums§

AddComponent
Returned by AllStorages::add_component and World::add_component when trying to add components to an entity that is not alive.
AddWorkload
Error type returned by Workload::add_to_world.
Apply
Error returned by apply and apply_mut.
Borrow
AtomicRefCell’s borrow error.
CustomStorageView
Returned when trying to create views for custom storages.
Deserializeserde1
Returned by DesWorld::deserialize] or AllStorages::deserialize.
GetComponent
Returned by World::get and AllStorages::get.
GetStorage
Error related to acquiring a storage.
ImpossibleRequirements
Returned when requirements for a workload make it impossible to build a valid workload.
InvalidSystem
Returned when trying to add an invalid system to a workload.
NewEntity
Error related to adding an entity.
Run
Error returned by World::run and AllStorages::run. Can refer to an invalid storage borrow or a custom error.
RunWorkload
Error returned by run_default and run_workload. The error can be a storage error, problem with the scheduler’s borrowing, a non existent workload or a custom error.
Serializeserde1
Returned by World::serialize or AllStorages::serialize.
SetDefaultWorkload
Trying to set the default workload to a non existent one will result in this error.
UniquePresence
Error returned by are_all_uniques_present_in_world.
UniqueRemove
Error returned by World::remove_unique and AllStorages::remove_unique.