pub enum IncrementalError<K> {
UnknownQuery {
key: K,
},
Cycle {
path: Vec<K>,
},
BudgetExceeded {
kind: BudgetKind,
limit: usize,
consumed: usize,
continuation: Option<ContinuationToken>,
},
Cancelled,
UnknownContinuation {
token: ContinuationToken,
},
}Expand description
A typed query verification failure.
Variants§
UnknownQuery
No query was registered for the requested key.
Fields
§
key: KThe missing query key.
Cycle
Query execution attempted to re-enter a key already on the stack.
BudgetExceeded
A configured budget was exhausted.
Fields
§
kind: BudgetKindThe exhausted budget class.
§
continuation: Option<ContinuationToken>A token that resumes the owning root query.
Cancelled
Query code requested cancellation.
UnknownContinuation
A continuation token was not known to this engine.
Fields
§
token: ContinuationTokenThe rejected token.
Implementations§
Source§impl<K> IncrementalError<K>
impl<K> IncrementalError<K>
Sourcepub fn continuation(&self) -> Option<ContinuationToken>
pub fn continuation(&self) -> Option<ContinuationToken>
Returns the continuation token carried by a budget error, when present.
Trait Implementations§
Source§impl<K: Clone> Clone for IncrementalError<K>
impl<K: Clone> Clone for IncrementalError<K>
Source§fn clone(&self) -> IncrementalError<K>
fn clone(&self) -> IncrementalError<K>
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<K: Debug> Debug for IncrementalError<K>
impl<K: Debug> Debug for IncrementalError<K>
Source§impl<K: Debug> Display for IncrementalError<K>
impl<K: Debug> Display for IncrementalError<K>
impl<K: Eq> Eq for IncrementalError<K>
Source§impl<K: Debug> Error for IncrementalError<K>
impl<K: Debug> Error for IncrementalError<K>
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()
Source§impl<K: PartialEq> PartialEq for IncrementalError<K>
impl<K: PartialEq> PartialEq for IncrementalError<K>
impl<K: PartialEq> StructuralPartialEq for IncrementalError<K>
Auto Trait Implementations§
impl<K> Freeze for IncrementalError<K>where
K: Freeze,
impl<K> RefUnwindSafe for IncrementalError<K>where
K: RefUnwindSafe,
impl<K> Send for IncrementalError<K>where
K: Send,
impl<K> Sync for IncrementalError<K>where
K: Sync,
impl<K> Unpin for IncrementalError<K>where
K: Unpin,
impl<K> UnsafeUnpin for IncrementalError<K>where
K: UnsafeUnpin,
impl<K> UnwindSafe for IncrementalError<K>where
K: UnwindSafe,
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