Skip to main content

QueryFrame

Struct QueryFrame 

Source
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>
where K: Ord + Clone, V: Clone + FingerprintValue,

Source

pub fn read(&mut self, key: K) -> QueryResult<K, V>

Reads another query and records a read dependency.

Source

pub fn observe( &mut self, kind: ObservationKind, key: K, ) -> Result<(), IncrementalError<K>>

Records an external observation with the current source revision.

Source

pub fn observe_missing(&mut self, key: K) -> Result<(), IncrementalError<K>>

Records that a name was missing.

Source

pub fn observe_listing(&mut self, key: K) -> Result<(), IncrementalError<K>>

Records that a listing was inspected.

Source

pub fn observe_policy(&mut self, key: K) -> Result<(), IncrementalError<K>>

Records that policy or authority state was inspected.

Source

pub fn observe_epoch(&mut self, key: K) -> Result<(), IncrementalError<K>>

Records that an external backend epoch was inspected.

Source

pub fn charge_work(&mut self, units: usize) -> Result<(), IncrementalError<K>>

Charges additional user-defined work units.

Source

pub fn charge_output(&mut self, units: usize) -> Result<(), IncrementalError<K>>

Charges additional user-defined output units.

Source

pub fn cancel(&mut self)

Requests cancellation of the current verification run.

Source

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>
where K: Send, V: Send,

§

impl<'a, K, V> Sync for QueryFrame<'a, K, V>
where K: Sync, V: Sync,

§

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> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.