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§
fn put_full<K, V>( &self, key: K, value: V, writeopts: Option<&W> ) -> Result<(), Error>where K: AsRef<[u8]>, V: AsRef<[u8]>,
Provided Methods§
sourcefn put<K, V>(&self, key: K, value: V) -> Result<(), Error>where
K: AsRef<[u8]>,
V: AsRef<[u8]>,
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.
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.