[][src]Trait sledis::table::TableWriteStore

pub trait TableWriteStore: WriteStore {
    fn table_insert<V>(
        &self,
        name: &[u8],
        key: &[u8],
        val: V
    ) -> Result<Option<IVec>, Self::Error>
    where
        IVec: From<V>
;
fn table_remove(
        &self,
        name: &[u8],
        key: &[u8]
    ) -> Result<Option<IVec>, Self::Error>;
fn table_fetch_update<V, F>(
        &self,
        name: &[u8],
        key: &[u8],
        f: F
    ) -> Result<Option<IVec>, Self::Error>
    where
        IVec: From<V>,
        F: FnMut(Option<&[u8]>) -> Option<V>
; }

Required methods

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

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

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

Loading content...

Implementors

impl<S> TableWriteStore for S where
    S: WriteStore,
    S::Error: From<Error>, 
[src]

Loading content...