[][src]Struct pmemkv::kvengine::KVEngine

pub struct KVEngine(_);

Methods

impl KVEngine[src]

pub fn start<F>(
    engine: String,
    config: String,
    callback: Option<F>
) -> Result<KVEngine> where
    F: Fn(*const c_char, *const c_char, *const c_char),
    F: 'static, 
[src]

pub fn start_string<F>(
    engine: String,
    config: String,
    callback: Option<F>
) -> Result<KVEngine> where
    F: Fn(String, String, String),
    F: 'static, 
[src]

pub fn put(&mut self, key: String, value: String) -> Result<()>[src]

pub fn remove(&mut self, key: String) -> Result<()>[src]

pub fn get<F>(&self, key: String, callback: Option<F>) -> Result<()> where
    F: Fn(c_int, *const c_char), 
[src]

pub fn get_string<F>(&self, key: String, callback: Option<F>) -> Result<()> where
    F: Fn(String), 
[src]

pub fn get_copy(&self, key: String, max_value_bytes: i32) -> Result<String>[src]

pub fn exists(&self, key: String) -> Result<()>[src]

pub fn each<F>(&self, callback: Option<F>) where
    F: Fn(c_int, *const c_char, c_int, *const c_char),
    F: 'static, 
[src]

pub fn each_string<F>(&self, callback: Option<F>) where
    F: Fn(String, String), 
[src]

pub fn each_above<F>(&self, key: String, callback: Option<F>) -> Result<()> where
    F: Fn(c_int, *const c_char, c_int, *const c_char),
    F: 'static, 
[src]

pub fn each_above_string<F>(
    &self,
    key: String,
    callback: Option<F>
) -> Result<()> where
    F: Fn(String, String), 
[src]

pub fn each_below<F>(&self, key: String, callback: Option<F>) -> Result<()> where
    F: Fn(c_int, *const c_char, c_int, *const c_char),
    F: 'static, 
[src]

pub fn each_below_string<F>(
    &self,
    key: String,
    callback: Option<F>
) -> Result<()> where
    F: Fn(String, String), 
[src]

pub fn each_between<F>(
    &self,
    key1: String,
    key2: String,
    callback: Option<F>
) -> Result<()> where
    F: Fn(c_int, *const c_char, c_int, *const c_char),
    F: 'static, 
[src]

pub fn each_between_string<F>(
    &self,
    key1: String,
    key2: String,
    callback: Option<F>
) -> Result<()> where
    F: Fn(String, String), 
[src]

pub fn count(&self) -> i64[src]

pub fn count_above(&self, key: String) -> Result<i64>[src]

pub fn count_below(&self, key: String) -> Result<i64>[src]

pub fn count_between(&self, key1: String, key2: String) -> Result<i64>[src]

pub fn all<F>(&mut self, callback: Option<F>) where
    F: Fn(c_int, *const c_char), 
[src]

pub fn all_string<F>(&mut self, callback: Option<F>) where
    F: Fn(String), 
[src]

pub fn all_above<F>(&mut self, key: String, callback: Option<F>) -> Result<()> where
    F: Fn(c_int, *const c_char), 
[src]

pub fn all_above_string<F>(
    &mut self,
    key: String,
    callback: Option<F>
) -> Result<()> where
    F: Fn(String), 
[src]

pub fn all_below<F>(&mut self, key: String, callback: Option<F>) -> Result<()> where
    F: Fn(c_int, *const c_char), 
[src]

pub fn all_below_string<F>(
    &mut self,
    key: String,
    callback: Option<F>
) -> Result<()> where
    F: Fn(String), 
[src]

pub fn all_between<F>(
    &mut self,
    key1: String,
    key2: String,
    callback: Option<F>
) -> Result<()> where
    F: Fn(c_int, *const c_char), 
[src]

pub fn all_between_string<F>(
    &mut self,
    key1: String,
    key2: String,
    callback: Option<F>
) -> Result<()> where
    F: Fn(String), 
[src]

Trait Implementations

impl Clone for KVEngine[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl Drop for KVEngine[src]

impl Debug for KVEngine[src]

Auto Trait Implementations

impl !Send for KVEngine

impl !Sync for KVEngine

Blanket Implementations

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

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> From for T[src]

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

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

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

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.