Crate wasmcloud_actor_keyvalue[][src]

wasmCloud Key-Value Store Actor Interface

This crate provides wasmCloud actors with an interface to the key-value capability provider. Actors using this interface must have the claim wasmcloud:keyvalue in order to have permission to communicate with the store.

The key-value provider is one-way, and only accepts host calls from the actor. This provider does not deliver messages to actors.

Example:

extern crate wasmcloud_actor_keyvalue as kv;
use wapc_guest::HandlerResult;

fn add() -> HandlerResult<()> {
  let _ = kv::default().add("test".to_string(), 1)?;    
  Ok(())
}

Structs

AddArgs
AddResponse
ClearArgs
DelArgs
DelResponse
GetArgs
GetResponse
KeyExistsArgs
ListItemDeleteArgs
ListRangeResponse
ListResponse
PushArgs
RangeArgs
SetAddArgs
SetArgs
SetIntersectionArgs
SetOperationResponse
SetQueryArgs
SetQueryResponse
SetRemoveArgs
SetResponse
SetUnionArgs

Constants

OP_ADD
OP_CLEAR
OP_DEL
OP_GET
OP_KEY_EXISTS
OP_LIST_DEL
OP_PUSH
OP_RANGE
OP_SET
OP_SET_ADD
OP_SET_INTERSECT
OP_SET_QUERY
OP_SET_REMOVE
OP_SET_UNION

Functions

deserialize

The standard function for de-serializing codec structs from a format suitable for message exchange between actor and host. Use of any other function to deserialize could result in breaking incompatibilities.

serialize

The standard function for serializing codec structs into a format that can be used for message exchange between actor and host. Use of any other function to serialize could result in breaking incompatibilities.