Struct leveldb_rs::DBReadOptions
[−]
[src]
pub struct DBReadOptions { /* fields omitted */ }
This structure represents options that can be used when reading from a LevelDB instance.
Methods
impl DBReadOptions
[src]
fn new() -> Option<DBReadOptions>
Create and return a new DBReadOptions instance. Returns None
if the
underlying library call returns a null pointer.
fn set_verify_checksums(&mut self, val: bool) -> &mut DBReadOptions
If set to 'true', all data read from the underlying storage will be verified against corresponding checksums.
Defaults to 'false'.
fn set_fill_cache(&mut self, val: bool) -> &mut DBReadOptions
Set whether the data read for this iteration should be cached in memory.
Defaults to 'true'.