#[non_exhaustive]pub enum CommandBatchError {
LimitExceeded {
limit: usize,
},
AllocationFailed,
ForeignEntity {
entity: LogicEntity,
},
MissingEntity {
entity: LogicEntity,
},
DuplicateDespawn {
entity: LogicEntity,
},
ConflictingEntityCommands {
entity: LogicEntity,
},
EntityLimitExceeded {
limit: usize,
requested: usize,
},
RequiredComponentWouldBeMissing {
entity: LogicEntity,
required: String,
required_by: String,
},
Component(ComponentApprovalError),
}Expand description
Reason an entire structural stage batch was rejected before entity mutation.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
LimitExceeded
At least one System attempted to exceed the configured command limit.
AllocationFailed
Command queue storage could not be reserved.
ForeignEntity
A structural-command target belongs to another application or World generation.
Fields
entity: LogicEntityRejected opaque entity handle.
MissingEntity
A structural-command target no longer names a live entity.
Fields
entity: LogicEntityRejected opaque entity handle.
DuplicateDespawn
The same entity was scheduled for despawn more than once.
Fields
entity: LogicEntityDuplicated opaque entity handle.
ConflictingEntityCommands
One stage batch attempted to structurally change and despawn the same entity.
Fields
entity: LogicEntityConflicted opaque entity handle.
EntityLimitExceeded
Applying every spawn would exceed the active-entity limit.
Fields
RequiredComponentWouldBeMissing
A retained component would lose one of its registered required components.
Fields
entity: LogicEntityRejected opaque entity handle.
Component(ComponentApprovalError)
A structural bundle fell outside the frozen approved component set.
Trait Implementations§
Source§impl Clone for CommandBatchError
impl Clone for CommandBatchError
Source§impl Debug for CommandBatchError
impl Debug for CommandBatchError
Source§impl Display for CommandBatchError
impl Display for CommandBatchError
impl Eq for CommandBatchError
Source§impl Error for CommandBatchError
impl Error for CommandBatchError
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()
Source§impl PartialEq for CommandBatchError
impl PartialEq for CommandBatchError
impl StructuralPartialEq for CommandBatchError
Auto Trait Implementations§
impl Freeze for CommandBatchError
impl RefUnwindSafe for CommandBatchError
impl Send for CommandBatchError
impl Sync for CommandBatchError
impl Unpin for CommandBatchError
impl UnsafeUnpin for CommandBatchError
impl UnwindSafe for CommandBatchError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> ConditionalSend for Twhere
T: Send,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.Source§impl<T> DowncastSync for T
impl<T> DowncastSync for T
impl<S, T> Duplex<S> for Twhere
T: FromSample<S> + ToSample<S>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.