[][src]Trait rdms::Replay

pub trait Replay<K, V> where
    K: Clone + Ord,
    V: Clone + Diff
{ fn set_index(&mut self, key: K, value: V, index: u64) -> Result<Entry<K, V>>;
fn set_cas_index(
        &mut self,
        key: K,
        value: V,
        cas: u64,
        index: u64
    ) -> Result<Entry<K, V>>;
fn delete_index(&mut self, key: K, index: u64) -> Result<Entry<K, V>>; }

Replay WAL (Write-Ahead-Log) entries on index.

Required methods

fn set_index(&mut self, key: K, value: V, index: u64) -> Result<Entry<K, V>>

Replay set operation on index.

fn set_cas_index(
    &mut self,
    key: K,
    value: V,
    cas: u64,
    index: u64
) -> Result<Entry<K, V>>

Replay set-cas operation on index.

fn delete_index(&mut self, key: K, index: u64) -> Result<Entry<K, V>>

Replay delete operation on index.

Loading content...

Implementors

Loading content...