Trait ckb_rocksdb::ops::Get
source · pub trait Get<R> {
// Required method
fn get_full<K: AsRef<[u8]>>(
&self,
key: K,
readopts: Option<&R>
) -> Result<Option<DBVector>, Error>;
// Provided methods
fn get<K: AsRef<[u8]>>(&self, key: K) -> Result<Option<DBVector>, Error> { ... }
fn get_opt<K: AsRef<[u8]>>(
&self,
key: K,
readopts: &R
) -> Result<Option<DBVector>, Error> { ... }
}
Required Methods§
fn get_full<K: AsRef<[u8]>>( &self, key: K, readopts: Option<&R> ) -> Result<Option<DBVector>, Error>
Provided Methods§
sourcefn get<K: AsRef<[u8]>>(&self, key: K) -> Result<Option<DBVector>, Error>
fn get<K: AsRef<[u8]>>(&self, key: K) -> Result<Option<DBVector>, Error>
Return the bytes associated with a key value
fn get_opt<K: AsRef<[u8]>>( &self, key: K, readopts: &R ) -> Result<Option<DBVector>, Error>
Object Safety§
This trait is not object safe.