#[non_exhaustive]pub enum QueryError {
Show 16 variants
UnregisteredComponent {
name: String,
},
WrongStorageKind {
name: String,
},
ConflictingFilters {
detail: String,
},
DuplicateMutableComponent {
name: String,
},
WrongOwner,
StaleCache,
WrongQuery {
detail: String,
},
MovingChangeWindow,
UnsupportedCachePolicy {
detail: String,
},
ExactIdOrderConflict,
DuplicateExactId {
entity: EntityId,
},
MissingExactId {
entity: EntityId,
},
BorrowConflict {
detail: String,
},
CommandRejected {
detail: String,
},
OwnerMismatch,
TraversalAborted {
entity: EntityId,
detail: String,
},
}Expand description
Failure while resolving, traversing, caching, or mutating through a query.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
UnregisteredComponent
Query referenced a component type that is not registered in the world schema.
WrongStorageKind
Query traversal expected a different storage kind for the named component.
ConflictingFilters
Query spec combined incompatible structural or temporal filters.
DuplicateMutableComponent
Mutable traversal requested the same component type more than once.
WrongOwner
Query handle or cursor belongs to a different world owner.
StaleCache
Membership or result cache handle is stale for its slot and generation.
WrongQuery
Cursor, cache, event, or plan does not match the active query configuration.
MovingChangeWindow
Result-cache policy cannot serve added/changed moving windows.
UnsupportedCachePolicy
Prepared-query materialization policy is incompatible with the resolved plan.
ExactIdOrderConflict
Exact-id order conflicts with a result cache that reorders matches.
DuplicateExactId
Exact-id list contains the same entity more than once.
MissingExactId
Exact-id policy requires every listed entity to be available.
BorrowConflict
Query traversal cannot borrow world state for the requested operation.
CommandRejected
Deferred command or bundle write was rejected before enqueue.
OwnerMismatch
Cache handle owner token does not match the active world.
TraversalAborted
Mutable traversal stopped early because a callback returned an error.
Trait Implementations§
Source§impl Clone for QueryError
impl Clone for QueryError
Source§fn clone(&self) -> QueryError
fn clone(&self) -> QueryError
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 QueryError
impl Debug for QueryError
Source§impl Display for QueryError
Available on crate feature std only.
impl Display for QueryError
std only.impl Eq for QueryError
Source§impl Error for QueryError
Available on crate feature std only.
impl Error for QueryError
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()