Module context

Source
Expand description

The Context trait and related definitions.

Structs§

BaseKey
A wrapper over Vec<u8> with functions for using it as a key prefix.
ViewContext
Implementation of the Context trait on top of a DB client implementing crate::store::KeyValueStore.

Traits§

Context
The context in which a view is operated. Typically, this includes the client to connect to the database and the address of the current entry.

Type Aliases§

MemoryContext
An implementation of crate::context::Context that stores all values in memory.