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 | Response type for Add operations |
ClearArgs | |
DelArgs | |
DelResponse | Response type for Delete operations |
GetArgs | |
GetResponse | Response type for Get operations |
Host | |
KeyExistsArgs | |
ListItemDeleteArgs | |
ListRangeResponse | Response type for list range operations |
ListResponse | Response type for list push operations |
PushArgs | |
RangeArgs | |
SetAddArgs | |
SetArgs | |
SetIntersectionArgs | |
SetOperationResponse | Response type for set add operations |
SetQueryArgs | |
SetQueryResponse | Response type for set query operations |
SetRemoveArgs | |
SetResponse | Response type for the Set operation, not to be confused with the set data structure |
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
default | Creates the default host binding |
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. |
host | Creates a named host binding |
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. |