pub struct DBReadOptions { /* private fields */ }
Expand description
This structure represents options that can be used when reading from a LevelDB instance.
Implementations§
Source§impl DBReadOptions
impl DBReadOptions
Sourcepub fn new() -> Option<DBReadOptions>
pub fn new() -> Option<DBReadOptions>
Create and return a new DBReadOptions instance. Returns None
if the
underlying library call returns a null pointer.
Sourcepub fn set_verify_checksums(&mut self, val: bool) -> &mut DBReadOptions
pub 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’.
Sourcepub fn set_fill_cache(&mut self, val: bool) -> &mut DBReadOptions
pub 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’.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for DBReadOptions
impl RefUnwindSafe for DBReadOptions
impl !Send for DBReadOptions
impl !Sync for DBReadOptions
impl Unpin for DBReadOptions
impl UnwindSafe for DBReadOptions
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more