#[non_exhaustive]pub enum BuildError {
Show 26 variants
PendingCommands,
WorldRunning,
WorldMutationPoisoned,
LeaseMismatch,
LiveLeaseAlreadyAttached,
UnknownStage {
label: String,
},
UnknownSystem {
label: String,
},
UnknownSystemSet {
label: String,
},
DuplicateSystemSet {
label: String,
},
DuplicateSystemLabel {
label: String,
},
SystemInitialization {
system: String,
detail: String,
},
CrossOperationEdge {
from: String,
to: String,
},
CrossStageSystemEdge {
from: String,
to: String,
},
MissingRequiredResource {
name: String,
},
UnregisteredEventRole {
system: String,
event: String,
},
EventOperationMismatch {
system: String,
event: String,
event_operation: StageOperation,
system_operation: StageOperation,
},
MissingEventProducer {
system: String,
event: String,
},
UnreachableEventProducer {
producer: String,
consumer: String,
event: String,
},
SelfEdge {
label: String,
},
Cycle {
path: Vec<String>,
},
FixedUpdateWithoutConfig,
FixedConfigWithoutFixedUpdate,
StageOperationMismatch {
label: String,
},
InvalidStageFlushMode {
label: String,
mode: FlushMode,
},
InvalidSystemFlushMode {
label: String,
mode: FlushMode,
},
WorldBuild(WorldError),
}Expand description
Schedule construction failure before first execution.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
PendingCommands
World still has unflushed deferred commands.
WorldRunning
World run guard is active; build requires an idle world.
WorldMutationPoisoned
Change-tick exhaustion poisoned the world.
LeaseMismatch
Attached execution lease does not match this schedule.
LiveLeaseAlreadyAttached
Another compiled schedule already holds a live world lease.
UnknownStage
Referenced stage label was never registered.
UnknownSystem
Ordering edge names a system that was never added.
UnknownSystemSet
System or ordering edge names an unregistered set.
DuplicateSystemSet
Same system-set label registered twice.
DuplicateSystemLabel
Two systems share the same label.
SystemInitialization
Build-time initializer for a system returned an error.
CrossOperationEdge
Ordering edge would cross Update/Render operations.
CrossStageSystemEdge
System ordering edge spans different stages.
MissingRequiredResource
System declared a resource lock for a type not present in the world.
UnregisteredEventRole
System event role references an unregistered event or lifecycle channel.
EventOperationMismatch
Frame-retained event operation does not match the system’s stage operation.
MissingEventProducer
Internal frame event consumer has no emitting producer.
UnreachableEventProducer
Producer is not ordered before the consumer for the same frame event.
SelfEdge
System depends on itself in the ordering graph.
Cycle
Stage-local ordering graph contains a cycle.
FixedUpdateWithoutConfig
FixedUpdate systems exist but no fixed timestep was configured.
FixedConfigWithoutFixedUpdate
Fixed timestep configured without a FixedUpdate stage.
StageOperationMismatch
Re-adding a stage label with a different operation.
InvalidStageFlushMode
Flush mode is invalid for the stage’s operation.
InvalidSystemFlushMode
Flush mode is invalid for the system’s stage operation.
WorldBuild(WorldError)
Underlying world construction or attachment failed.
Trait Implementations§
Source§impl Clone for BuildError
impl Clone for BuildError
Source§fn clone(&self) -> BuildError
fn clone(&self) -> BuildError
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for BuildError
impl Debug for BuildError
Source§impl Display for BuildError
Available on crate feature std only.
impl Display for BuildError
std only.impl Eq for BuildError
Source§impl Error for BuildError
Available on crate feature std only.
impl Error for BuildError
std only.1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()