[][src]Struct http_guest::kvstore::KVStore

pub struct KVStore { /* fields omitted */ }

A key-value store that persists between requests.

Methods

impl KVStore
[src]

Insert a value into the store at the given key.

Returns true if key was not present before this call.

Insert a value into the store at the given key if that key is not already present.

Returns true if key was not present before this call.

Append to the value at the given key if that key is present in the store. If not, insert the value.

Returns true if key was not present before this call.

Get a value from the store at the given key.

If the key is not present, returns None.

Remove a value from the store at the given key.

Returns true if the key was removed, or false if the key was not present before this call.

Auto Trait Implementations

impl Send for KVStore

impl Sync for KVStore

Blanket Implementations

impl<T> From for T
[src]

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom for T where
    T: From<U>, 
[src]

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Any for T where
    T: 'static + ?Sized
[src]