Trait DebugQueryTable

Source
pub trait DebugQueryTable {
    type Key;
    type Value;

    // Required methods
    fn durability(&self, key: Self::Key) -> Durability;
    fn entries<C>(&self) -> C
       where C: FromIterator<TableEntry<Self::Key, Self::Value>>;
}
Expand description

Additional methods on queries that can be used to “peek into” their current state. These methods are meant for debugging and observing the effects of garbage collection etc.

Required Associated Types§

Source

type Key

Key of this query.

Source

type Value

Value of this query.

Required Methods§

Source

fn durability(&self, key: Self::Key) -> Durability

Returns a lower bound on the durability for the given key. This is typically the minimum durability of all values that the query accessed, but we may return a lower durability in some cases.

Source

fn entries<C>(&self) -> C
where C: FromIterator<TableEntry<Self::Key, Self::Value>>,

Get the (current) set of the entries in the query table.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<Q> DebugQueryTable for QueryTable<'_, Q>
where Q: Query, Q::Storage: QueryStorageOps<Q>,

Source§

type Key = <Q as Query>::Key

Source§

type Value = <Q as Query>::Value