pub enum QueryError {
Suspend,
Cycle {
path: Vec<String>,
},
Cancelled,
MissingDependency {
description: String,
},
}Expand description
System-level query errors.
These are distinct from user domain errors, which should be wrapped
in Query::Output (e.g., type Output = Result<T, MyError>).
Variants§
Suspend
Query is waiting for async loading to complete.
This is returned when a dependency is still loading via a background task.
Use runtime.query_async() to wait for loading to complete, or handle
explicitly in your query logic.
Cycle
Dependency cycle detected.
The query graph contains a cycle, which would cause infinite recursion.
The path contains a debug representation of the cycle.
Cancelled
Query execution was cancelled.
MissingDependency
A required dependency is missing.
Trait Implementations§
Source§impl Clone for QueryError
impl Clone for QueryError
Source§fn clone(&self) -> QueryError
fn clone(&self) -> QueryError
Returns a duplicate of the value. Read more
1.0.0 · 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 QueryError
impl Debug for QueryError
Source§impl Display for QueryError
impl Display for QueryError
Source§impl Error for QueryError
impl Error for QueryError
1.30.0 · 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()
Auto Trait Implementations§
impl Freeze for QueryError
impl RefUnwindSafe for QueryError
impl Send for QueryError
impl Sync for QueryError
impl Unpin for QueryError
impl UnwindSafe for QueryError
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