Skip to main content

BuildError

Enum BuildError 

Source
#[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
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
§

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.

Fields

§label: String
§

UnknownSystem

Ordering edge names a system that was never added.

Fields

§label: String
§

UnknownSystemSet

System or ordering edge names an unregistered set.

Fields

§label: String
§

DuplicateSystemSet

Same system-set label registered twice.

Fields

§label: String
§

DuplicateSystemLabel

Two systems share the same label.

Fields

§label: String
§

SystemInitialization

Build-time initializer for a system returned an error.

Fields

§system: String
§detail: String
§

CrossOperationEdge

Ordering edge would cross Update/Render operations.

Fields

§from: String
§

CrossStageSystemEdge

System ordering edge spans different stages.

Fields

§from: String
§

MissingRequiredResource

System declared a resource lock for a type not present in the world.

Fields

§name: String
§

UnregisteredEventRole

System event role references an unregistered event or lifecycle channel.

Fields

§system: String
§event: String
§

EventOperationMismatch

Frame-retained event operation does not match the system’s stage operation.

Fields

§system: String
§event: String
§event_operation: StageOperation
§system_operation: StageOperation
§

MissingEventProducer

Internal frame event consumer has no emitting producer.

Fields

§system: String
§event: String
§

UnreachableEventProducer

Producer is not ordered before the consumer for the same frame event.

Fields

§producer: String
§consumer: String
§event: String
§

SelfEdge

System depends on itself in the ordering graph.

Fields

§label: String
§

Cycle

Stage-local ordering graph contains a cycle.

Fields

§path: Vec<String>
§

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.

Fields

§label: String
§

InvalidStageFlushMode

Flush mode is invalid for the stage’s operation.

Fields

§label: String
§

InvalidSystemFlushMode

Flush mode is invalid for the system’s stage operation.

Fields

§label: String
§

WorldBuild(WorldError)

Underlying world construction or attachment failed.

Trait Implementations§

Source§

impl Clone for BuildError

Source§

fn clone(&self) -> BuildError

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for BuildError

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Display for BuildError

Available on crate feature std only.
Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Eq for BuildError

Source§

impl Error for BuildError

Available on crate feature std only.
1.30.0 · Source§

fn source(&self) -> Option<&(dyn Error + 'static)>

Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§

fn description(&self) -> &str

👎Deprecated since 1.42.0:

use the Display impl or to_string()

1.0.0 · Source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0:

replaced by Error::source, which can support downcasting

Source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type-based access to context intended for error reports. Read more
Source§

impl From<WorldError> for BuildError

Source§

fn from(value: WorldError) -> Self

Converts to this type from the input type.
Source§

impl PartialEq for BuildError

Source§

fn eq(&self, other: &BuildError) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for BuildError

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.