[−][src]Struct pmemkv::kvengine::KVEngine
Methods
impl KVEngine
[src]
pub fn start<F>(
engine: &str,
config: &str,
callback: Option<F>
) -> Result<KVEngine> where
F: Fn(*const c_char, *const c_char, *const c_char),
F: 'static,
[src]
engine: &str,
config: &str,
callback: Option<F>
) -> Result<KVEngine> where
F: Fn(*const c_char, *const c_char, *const c_char),
F: 'static,
pub fn start_string<F>(
engine: &str,
config: &str,
callback: Option<F>
) -> Result<KVEngine> where
F: Fn(&str, &str, &str),
F: 'static,
[src]
engine: &str,
config: &str,
callback: Option<F>
) -> Result<KVEngine> where
F: Fn(&str, &str, &str),
F: 'static,
pub fn put(&mut self, key: &str, value: &str) -> Result<()>
[src]
pub fn remove(&mut self, key: &str) -> Result<()>
[src]
pub fn get<F>(&self, key: &str, callback: Option<F>) -> Result<()> where
F: Fn(&[c_char]),
[src]
F: Fn(&[c_char]),
pub fn get_string<F>(&self, key: &str, callback: Option<F>) -> Result<()> where
F: Fn(&str),
[src]
F: Fn(&str),
pub fn get_copy(&self, key: &str, max_value_bytes: i32) -> Result<String>
[src]
pub fn exists(&self, key: &str) -> Result<()>
[src]
pub fn each<F>(&self, callback: Option<F>) where
F: Fn(&[c_char], &[c_char]),
F: 'static,
[src]
F: Fn(&[c_char], &[c_char]),
F: 'static,
pub fn each_string<F>(&self, callback: Option<F>) where
F: Fn(&str, &str),
[src]
F: Fn(&str, &str),
pub fn each_above<F>(&self, key: &str, callback: Option<F>) -> Result<()> where
F: Fn(&[c_char], &[c_char]),
F: 'static,
[src]
F: Fn(&[c_char], &[c_char]),
F: 'static,
pub fn each_above_string<F>(&self, key: &str, callback: Option<F>) -> Result<()> where
F: Fn(&str, &str),
[src]
F: Fn(&str, &str),
pub fn each_below<F>(&self, key: &str, callback: Option<F>) -> Result<()> where
F: Fn(&[c_char], &[c_char]),
F: 'static,
[src]
F: Fn(&[c_char], &[c_char]),
F: 'static,
pub fn each_below_string<F>(&self, key: &str, callback: Option<F>) -> Result<()> where
F: Fn(&str, &str),
[src]
F: Fn(&str, &str),
pub fn each_between<F>(
&self,
key1: &str,
key2: &str,
callback: Option<F>
) -> Result<()> where
F: Fn(&[c_char], &[c_char]),
F: 'static,
[src]
&self,
key1: &str,
key2: &str,
callback: Option<F>
) -> Result<()> where
F: Fn(&[c_char], &[c_char]),
F: 'static,
pub fn each_between_string<F>(
&self,
key1: &str,
key2: &str,
callback: Option<F>
) -> Result<()> where
F: Fn(&str, &str),
[src]
&self,
key1: &str,
key2: &str,
callback: Option<F>
) -> Result<()> where
F: Fn(&str, &str),
pub fn count(&self) -> i64
[src]
pub fn count_above(&self, key: &str) -> Result<i64>
[src]
pub fn count_below(&self, key: &str) -> Result<i64>
[src]
pub fn count_between(&self, key1: &str, key2: &str) -> Result<i64>
[src]
pub fn all<F>(&mut self, callback: Option<F>) where
F: Fn(&[c_char]),
[src]
F: Fn(&[c_char]),
pub fn all_string<F>(&mut self, callback: Option<F>) where
F: Fn(&str),
[src]
F: Fn(&str),
pub fn all_above<F>(&mut self, key: &str, callback: Option<F>) -> Result<()> where
F: Fn(&[c_char]),
[src]
F: Fn(&[c_char]),
pub fn all_above_string<F>(
&mut self,
key: &str,
callback: Option<F>
) -> Result<()> where
F: Fn(&str),
[src]
&mut self,
key: &str,
callback: Option<F>
) -> Result<()> where
F: Fn(&str),
pub fn all_below<F>(&mut self, key: &str, callback: Option<F>) -> Result<()> where
F: Fn(&[c_char]),
[src]
F: Fn(&[c_char]),
pub fn all_below_string<F>(
&mut self,
key: &str,
callback: Option<F>
) -> Result<()> where
F: Fn(&str),
[src]
&mut self,
key: &str,
callback: Option<F>
) -> Result<()> where
F: Fn(&str),
pub fn all_between<F>(
&mut self,
key1: &str,
key2: &str,
callback: Option<F>
) -> Result<()> where
F: Fn(&[c_char]),
[src]
&mut self,
key1: &str,
key2: &str,
callback: Option<F>
) -> Result<()> where
F: Fn(&[c_char]),
pub fn all_between_string<F>(
&mut self,
key1: &str,
key2: &str,
callback: Option<F>
) -> Result<()> where
F: Fn(&str),
[src]
&mut self,
key1: &str,
key2: &str,
callback: Option<F>
) -> Result<()> where
F: Fn(&str),
Trait Implementations
impl Drop for KVEngine
[src]
impl Clone for KVEngine
[src]
fn clone(&self) -> KVEngine
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Debug for KVEngine
[src]
Auto Trait Implementations
Blanket Implementations
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> From for T
[src]
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom 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> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,