#[non_exhaustive]pub enum WorldError {
Show 19 variants
EntityOwnerMismatch {
entity: EntityId,
},
StaleEntity {
entity: EntityId,
},
EntityNotLive {
entity: EntityId,
},
UnregisteredComponent {
name: String,
},
WrongStorageKind {
name: String,
},
Registration(RegistrationError),
Allocator(WorldAllocatorError),
ChangeTickExhausted,
StructuralMutationDuringRun,
StructuralCommandsDuringRender,
FlushDuringRun,
DiscardDuringRun,
Flush(FlushError),
UnregisteredResource {
name: String,
},
ResourceInUse {
name: String,
},
ResourceScoped {
name: String,
},
UnregisteredEvent {
name: String,
},
EventChannelClosed,
NestedRun,
}Expand description
Checked world operation failure.
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.
EntityOwnerMismatch
StaleEntity
EntityNotLive
UnregisteredComponent
WrongStorageKind
Registration(RegistrationError)
Allocator(WorldAllocatorError)
ChangeTickExhausted
StructuralMutationDuringRun
StructuralCommandsDuringRender
FlushDuringRun
DiscardDuringRun
Flush(FlushError)
UnregisteredResource
ResourceInUse
ResourceScoped
UnregisteredEvent
EventChannelClosed
NestedRun
Trait Implementations§
Source§impl Clone for WorldError
impl Clone for WorldError
Source§fn clone(&self) -> WorldError
fn clone(&self) -> WorldError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for WorldError
impl Debug for WorldError
Source§impl Display for WorldError
Available on crate feature std only.
impl Display for WorldError
Available on crate feature
std only.impl Eq for WorldError
Source§impl Error for WorldError
Available on crate feature std only.
impl Error for WorldError
Available on crate feature
std only.Source§fn source(&self) -> Option<&(dyn Error + 'static)>
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
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl From<FlushError> for WorldError
impl From<FlushError> for WorldError
Source§fn from(value: FlushError) -> Self
fn from(value: FlushError) -> Self
Converts to this type from the input type.
Source§impl From<RegistrationError> for WorldError
impl From<RegistrationError> for WorldError
Source§fn from(value: RegistrationError) -> Self
fn from(value: RegistrationError) -> Self
Converts to this type from the input type.
Source§impl From<WorldError> for BuildError
impl From<WorldError> for BuildError
Source§fn from(value: WorldError) -> Self
fn from(value: WorldError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for WorldError
impl PartialEq for WorldError
impl StructuralPartialEq for WorldError
Auto Trait Implementations§
impl Freeze for WorldError
impl RefUnwindSafe for WorldError
impl Send for WorldError
impl Sync for WorldError
impl Unpin for WorldError
impl UnsafeUnpin for WorldError
impl UnwindSafe for WorldError
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
Mutably borrows from an owned value. Read more