Struct ckb_db::ReadOptions [−][src]
pub struct ReadOptions { /* fields omitted */ }
Implementations
impl ReadOptions
[src]
impl ReadOptions
[src]pub fn set_snapshot<T>(&mut self, snapshot: &T) where
T: ConstHandle<rocksdb_snapshot_t>,
[src]
T: ConstHandle<rocksdb_snapshot_t>,
pub fn set_iterate_upper_bound<K>(&mut self, key: K) where
K: AsRef<[u8]>,
[src]
K: AsRef<[u8]>,
pub fn set_iterate_lower_bound<K>(&mut self, key: K) where
K: AsRef<[u8]>,
[src]
K: AsRef<[u8]>,
pub fn set_prefix_same_as_start(&mut self, v: bool)
[src]
pub fn set_total_order_seek(&mut self, v: bool)
[src]
pub fn set_readahead_size(&mut self, v: usize)
[src]
pub fn set_readahead_size(&mut self, v: usize)
[src]If non-zero, an iterator will create a new table reader which performs reads of the given size. Using a large size (> 2MB) can improve the performance of forward iteration on spinning disks. Default: 0
use ckb_rocksdb::{ReadOptions}; let mut opts = ReadOptions::default(); opts.set_readahead_size(4_194_304); // 4mb
pub fn input_or_default(
input: Option<&ReadOptions>,
default_readopts: &mut Option<ReadOptions>
) -> Result<*mut rocksdb_readoptions_t, Error>
[src]
input: Option<&ReadOptions>,
default_readopts: &mut Option<ReadOptions>
) -> Result<*mut rocksdb_readoptions_t, Error>
Trait Implementations
impl Clone for ReadOptions
[src]
impl Clone for ReadOptions
[src]pub fn clone(&self) -> ReadOptions
[src]
pub fn clone(&self) -> ReadOptions
[src]Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]Performs copy-assignment from source
. Read more
impl Default for ReadOptions
[src]
impl Default for ReadOptions
[src]pub fn default() -> ReadOptions
[src]
pub fn default() -> ReadOptions
[src]Returns the “default value” for a type. Read more
impl Drop for ReadOptions
[src]
impl Drop for ReadOptions
[src]impl<T> GetCF<ReadOptions> for T where
T: Handle<rocksdb_t> + Read,
[src]
impl<T> GetCF<ReadOptions> for T where
T: Handle<rocksdb_t> + Read,
[src]pub fn get_cf_full<K>(
&self,
cf: Option<&ColumnFamily>,
key: K,
readopts: Option<&ReadOptions>
) -> Result<Option<DBVector>, Error> where
K: AsRef<[u8]>,
[src]
&self,
cf: Option<&ColumnFamily>,
key: K,
readopts: Option<&ReadOptions>
) -> Result<Option<DBVector>, Error> where
K: AsRef<[u8]>,
fn get_cf<K>(
&self,
cf: &ColumnFamily,
key: K
) -> Result<Option<DBVector>, Error> where
K: AsRef<[u8]>,
[src]
&self,
cf: &ColumnFamily,
key: K
) -> Result<Option<DBVector>, Error> where
K: AsRef<[u8]>,
fn get_cf_opt<K>(
&self,
cf: &ColumnFamily,
key: K,
readopts: &R
) -> Result<Option<DBVector>, Error> where
K: AsRef<[u8]>,
[src]
&self,
cf: &ColumnFamily,
key: K,
readopts: &R
) -> Result<Option<DBVector>, Error> where
K: AsRef<[u8]>,
Auto Trait Implementations
impl RefUnwindSafe for ReadOptions
impl !Send for ReadOptions
impl !Sync for ReadOptions
impl Unpin for ReadOptions
impl UnwindSafe for ReadOptions
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,