Trait engine_traits::Mutable[][src]

pub trait Mutable: Send {
    fn put(&mut self, key: &[u8], value: &[u8]) -> Result<()>;
fn put_cf(&mut self, cf: &str, key: &[u8], value: &[u8]) -> Result<()>;
fn delete(&mut self, key: &[u8]) -> Result<()>;
fn delete_cf(&mut self, cf: &str, key: &[u8]) -> Result<()>;
fn delete_range(&mut self, begin_key: &[u8], end_key: &[u8]) -> Result<()>;
fn delete_range_cf(
        &mut self,
        cf: &str,
        begin_key: &[u8],
        end_key: &[u8]
    ) -> Result<()>; fn put_msg<M: Message>(&mut self, key: &[u8], m: &M) -> Result<()> { ... }
fn put_msg_cf<M: Message>(
        &mut self,
        cf: &str,
        key: &[u8],
        m: &M
    ) -> Result<()> { ... } }

A trait implemented by WriteBatch

Required methods

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

Write a key/value in the default column family

fn put_cf(&mut self, cf: &str, key: &[u8], value: &[u8]) -> Result<()>[src]

Write a key/value in a given column family

fn delete(&mut self, key: &[u8]) -> Result<()>[src]

Delete a key/value in the default column family

fn delete_cf(&mut self, cf: &str, key: &[u8]) -> Result<()>[src]

Delete a key/value in a given column family

fn delete_range(&mut self, begin_key: &[u8], end_key: &[u8]) -> Result<()>[src]

Delete a range of key/values in the default column family

fn delete_range_cf(
    &mut self,
    cf: &str,
    begin_key: &[u8],
    end_key: &[u8]
) -> Result<()>
[src]

Delete a range of key/values in a given column family

Loading content...

Provided methods

fn put_msg<M: Message>(&mut self, key: &[u8], m: &M) -> Result<()>[src]

fn put_msg_cf<M: Message>(&mut self, cf: &str, key: &[u8], m: &M) -> Result<()>[src]

Loading content...

Implementors

Loading content...