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§

source

fn get_full<K: AsRef<[u8]>>( &self, key: K, readopts: Option<&R> ) -> Result<Option<DBVector>, Error>

Provided Methods§

source

fn get<K: AsRef<[u8]>>(&self, key: K) -> Result<Option<DBVector>, Error>

Return the bytes associated with a key value

source

fn get_opt<K: AsRef<[u8]>>( &self, key: K, readopts: &R ) -> Result<Option<DBVector>, Error>

Object Safety§

This trait is not object safe.

Implementors§

source§

impl<T, R> Get<R> for Twhere T: GetCF<R>,