Skip to main content

WasiKeyValueCtx

Trait WasiKeyValueCtx 

Source
pub trait WasiKeyValueCtx:
    Debug
    + Send
    + Sync
    + 'static {
    // Required method
    fn open_bucket(&self, identifier: String) -> FutureResult<Arc<dyn Bucket>>;
}
Expand description

A trait which provides internal WASI Key-Value context.

This is implemented by the resource-specific provider of Key-Value functionality. For example, an in-memory store, or a Redis-backed store.

Required Methods§

Source

fn open_bucket(&self, identifier: String) -> FutureResult<Arc<dyn Bucket>>

Open a bucket.

Implementors§