Struct ckb_db::ReadOptions [−][src]
pub struct ReadOptions { /* fields omitted */ }
Implementations
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>
Trait Implementations
Returns the “default value” for a type. Read more
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
Mutably borrows from an owned value. Read more