linera_views::context

Type Alias MemoryContext

Source
pub type MemoryContext<E> = ViewContext<E, MemoryStore>;
Expand description

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

Aliased Type§

struct MemoryContext<E> { /* private fields */ }

Implementations§

Source§

impl<E> MemoryContext<E>

Source

pub fn new_for_testing(extra: E) -> Self

Creates a Context instance in memory for testing.

Trait Implementations§

Source§

impl DeletePrefixExpander for MemoryContext<()>

Source§

type Error = MemoryStoreError

The error type that can happen when expanding the key prefix.
Source§

async fn expand_delete_prefix( &self, key_prefix: &[u8], ) -> Result<Vec<Vec<u8>>, Self::Error>

Returns the list of keys to be appended to the list.