ckb_rocksdb::ops

Trait 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>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

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