[−][src]Struct wascc_actor::kv::DefaultKeyValueStore
An abstraction around a host runtime capability for a key-value store
Methods
impl DefaultKeyValueStore[src]
Trait Implementations
impl Default for DefaultKeyValueStore[src]
impl KeyValueStore for DefaultKeyValueStore[src]
fn get(&self, key: &str) -> Result<Option<String>>[src]
fn set(&self, key: &str, value: &str, expires: Option<u32>) -> Result<()>[src]
fn atomic_add(&self, key: &str, value: i32) -> Result<i32>[src]
fn list_add(&self, key: &str, item: &str) -> Result<usize>[src]
fn list_del_item(&self, key: &str, item: &str) -> Result<usize>[src]
fn del_key(&self, key: &str) -> Result<()>[src]
fn list_range(
&self,
key: &str,
start: isize,
stop_inclusive: isize
) -> Result<Vec<String>>[src]
&self,
key: &str,
start: isize,
stop_inclusive: isize
) -> Result<Vec<String>>
fn list_clear(&self, key: &str) -> Result<()>[src]
fn set_add(&self, key: &str, value: &str) -> Result<usize>[src]
fn set_remove(&self, key: &str, value: &str) -> Result<usize>[src]
fn set_union(&self, keys: Vec<String>) -> Result<Vec<String>>[src]
fn set_intersect(&self, keys: Vec<String>) -> Result<Vec<String>>[src]
fn set_members(&self, key: &str) -> Result<Vec<String>>[src]
fn exists(&self, key: &str) -> Result<bool>[src]
Auto Trait Implementations
impl RefUnwindSafe for DefaultKeyValueStore
impl Send for DefaultKeyValueStore
impl Sync for DefaultKeyValueStore
impl Unpin for DefaultKeyValueStore
impl UnwindSafe for DefaultKeyValueStore
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,