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§
Required Methods§
Sourcefn durability(&self, key: Self::Key) -> Durability
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.
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.