[][src]Trait sledis::WriteStore

pub trait WriteStore: ReadStore {
    fn insert<V>(&self, key: &[u8], val: V) -> Result<Option<IVec>, Self::Error>
    where
        IVec: From<V>
;
fn remove(&self, key: &[u8]) -> Result<Option<IVec>, Self::Error>; fn fetch_update<V, F>(
        &self,
        key: &[u8],
        f: F
    ) -> Result<Option<IVec>, Self::Error>
    where
        IVec: From<V>,
        F: FnMut(Option<&[u8]>) -> Option<V>
, { ... } }

Required methods

fn insert<V>(&self, key: &[u8], val: V) -> Result<Option<IVec>, Self::Error> where
    IVec: From<V>, 

fn remove(&self, key: &[u8]) -> Result<Option<IVec>, Self::Error>

Loading content...

Provided methods

fn fetch_update<V, F>(
    &self,
    key: &[u8],
    f: F
) -> Result<Option<IVec>, Self::Error> where
    IVec: From<V>,
    F: FnMut(Option<&[u8]>) -> Option<V>, 

Loading content...

Implementations on Foreign Types

impl WriteStore for Tree[src]

impl WriteStore for TransactionalTree[src]

Loading content...

Implementors

Loading content...