pub struct QueryFrame<'a, K, V> { /* private fields */ }Expand description
Execution context handed to a query callback.
Implementations§
Source§impl<K, V> QueryFrame<'_, K, V>
impl<K, V> QueryFrame<'_, K, V>
Sourcepub fn read(&mut self, key: K) -> QueryResult<K, V>
pub fn read(&mut self, key: K) -> QueryResult<K, V>
Reads another query and records a read dependency.
Sourcepub fn observe(
&mut self,
kind: ObservationKind,
key: K,
) -> Result<(), IncrementalError<K>>
pub fn observe( &mut self, kind: ObservationKind, key: K, ) -> Result<(), IncrementalError<K>>
Records an external observation with the current source revision.
Sourcepub fn observe_missing(&mut self, key: K) -> Result<(), IncrementalError<K>>
pub fn observe_missing(&mut self, key: K) -> Result<(), IncrementalError<K>>
Records that a name was missing.
Sourcepub fn observe_listing(&mut self, key: K) -> Result<(), IncrementalError<K>>
pub fn observe_listing(&mut self, key: K) -> Result<(), IncrementalError<K>>
Records that a listing was inspected.
Sourcepub fn observe_policy(&mut self, key: K) -> Result<(), IncrementalError<K>>
pub fn observe_policy(&mut self, key: K) -> Result<(), IncrementalError<K>>
Records that policy or authority state was inspected.
Sourcepub fn observe_epoch(&mut self, key: K) -> Result<(), IncrementalError<K>>
pub fn observe_epoch(&mut self, key: K) -> Result<(), IncrementalError<K>>
Records that an external backend epoch was inspected.
Sourcepub fn charge_work(&mut self, units: usize) -> Result<(), IncrementalError<K>>
pub fn charge_work(&mut self, units: usize) -> Result<(), IncrementalError<K>>
Charges additional user-defined work units.
Sourcepub fn charge_output(&mut self, units: usize) -> Result<(), IncrementalError<K>>
pub fn charge_output(&mut self, units: usize) -> Result<(), IncrementalError<K>>
Charges additional user-defined output units.
Sourcepub fn cancellation_requested(&self) -> bool
pub fn cancellation_requested(&self) -> bool
Returns whether cancellation has been requested.
Auto Trait Implementations§
impl<'a, K, V> !RefUnwindSafe for QueryFrame<'a, K, V>
impl<'a, K, V> !UnwindSafe for QueryFrame<'a, K, V>
impl<'a, K, V> Freeze for QueryFrame<'a, K, V>
impl<'a, K, V> Send for QueryFrame<'a, K, V>
impl<'a, K, V> Sync for QueryFrame<'a, K, V>
impl<'a, K, V> Unpin for QueryFrame<'a, K, V>
impl<'a, K, V> UnsafeUnpin for QueryFrame<'a, K, V>
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