pub struct KeyValueSender<T: Transport> { /* private fields */ }
Expand description

KeyValueSender sends messages to a KeyValue service client for sending KeyValue messages

Implementations

Constructs a KeyValueSender with the specified transport

Trait Implementations

Formats the value using the given formatter. Read more

Increments a numeric value, returning the new value

returns whether the store contains the key

Deletes a key, returning true if the key was deleted

Gets a value for a specified key. If the key exists, the return structure contains exists: true and the value, otherwise the return structure contains exists == false.

Append a value onto the end of a list. Returns the new list size

Deletes a list and its contents input: list name output: true if the list existed and was deleted

Deletes a value from a list. Returns true if the item was removed.

Retrieves a range of values from a list using 0-based indices. Start and end values are inclusive, for example, (0,10) returns 11 items if the list contains at least 11 items. If the stop value is beyond the end of the list, it is treated as the end of the list.

Sets the value of a key. expires is an optional number of seconds before the value should be automatically deleted, or 0 for no expiration.

Add an item into a set. Returns number of items added (1 or 0)

Deletes an item from the set. Returns number of items removed from the set (1 or 0)

perform intersection of sets and returns values from the intersection. input: list of sets for performing intersection (at least two) output: values

Retrieves all items from a set input: String output: set members

perform union of sets and returns values from the union input: list of sets for performing union (at least two) output: union of values

clears all values from the set and removes it input: set name output: true if the set existed and was deleted

returns the capability contract id for this interface

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The alignment of pointer.

The type for initializers.

Initializes a with the given initializer. Read more

Dereferences the given pointer. Read more

Mutably dereferences the given pointer. Read more

Drops the object pointed to by the given pointer. Read more

Should always be Self

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.