pub trait GetPinnedCF<'a> {
    type ColumnFamily;
    type ReadOptions;

    // Required method
    fn get_pinned_cf_full<K: AsRef<[u8]>>(
        &'a self,
        cf: Option<Self::ColumnFamily>,
        key: K,
        readopts: Option<Self::ReadOptions>
    ) -> Result<Option<DBPinnableSlice<'a>>, Error>;

    // Provided methods
    fn get_pinned_cf<K: AsRef<[u8]>>(
        &'a self,
        cf: Self::ColumnFamily,
        key: K
    ) -> Result<Option<DBPinnableSlice<'a>>, Error> { ... }
    fn get_pinned_cf_opt<K: AsRef<[u8]>>(
        &'a self,
        cf: Self::ColumnFamily,
        key: K,
        readopts: Self::ReadOptions
    ) -> Result<Option<DBPinnableSlice<'a>>, Error> { ... }
}

Required Associated Types§

Required Methods§

source

fn get_pinned_cf_full<K: AsRef<[u8]>>( &'a self, cf: Option<Self::ColumnFamily>, key: K, readopts: Option<Self::ReadOptions> ) -> Result<Option<DBPinnableSlice<'a>>, Error>

Return the value associated with a key using RocksDB’s PinnableSlice so as to avoid unnecessary memory copy.

Provided Methods§

source

fn get_pinned_cf<K: AsRef<[u8]>>( &'a self, cf: Self::ColumnFamily, key: K ) -> Result<Option<DBPinnableSlice<'a>>, Error>

Return the value associated with a key using RocksDB’s PinnableSlice so as to avoid unnecessary memory copy.

source

fn get_pinned_cf_opt<K: AsRef<[u8]>>( &'a self, cf: Self::ColumnFamily, key: K, readopts: Self::ReadOptions ) -> Result<Option<DBPinnableSlice<'a>>, Error>

Return the value associated with a key using RocksDB’s PinnableSlice so as to avoid unnecessary memory copy.

Object Safety§

This trait is not object safe.

Implementors§