Trait ckb_rocksdb::ops::Put

source ·
pub trait Put<W> {
    // Required method
    fn put_full<K, V>(
        &self,
        key: K,
        value: V,
        writeopts: Option<&W>
    ) -> Result<(), Error>
       where K: AsRef<[u8]>,
             V: AsRef<[u8]>;

    // Provided methods
    fn put<K, V>(&self, key: K, value: V) -> Result<(), Error>
       where K: AsRef<[u8]>,
             V: AsRef<[u8]> { ... }
    fn put_opt<K, V>(
        &self,
        key: K,
        value: V,
        writeopts: &W
    ) -> Result<(), Error>
       where K: AsRef<[u8]>,
             V: AsRef<[u8]> { ... }
}

Required Methods§

source

fn put_full<K, V>( &self, key: K, value: V, writeopts: Option<&W> ) -> Result<(), Error>where K: AsRef<[u8]>, V: AsRef<[u8]>,

Provided Methods§

source

fn put<K, V>(&self, key: K, value: V) -> Result<(), Error>where K: AsRef<[u8]>, V: AsRef<[u8]>,

Insert a value into the database under the given key.

source

fn put_opt<K, V>(&self, key: K, value: V, writeopts: &W) -> Result<(), Error>where K: AsRef<[u8]>, V: AsRef<[u8]>,

Object Safety§

This trait is not object safe.

Implementors§

source§

impl<T, W> Put<W> for Twhere T: PutCF<W>,