pub struct ReadOptions {
pub snapshot: Option<u64>,
pub fill_cache: bool,
pub verify_checksums: bool,
pub readahead_size: usize,
pub total_order_seek: bool,
pub pin_data: bool,
}Expand description
Options for read operations.
Fields§
§snapshot: Option<u64>If set, reads will use this snapshot sequence number.
fill_cache: boolWhether to fill the block cache for this read. Default: true.
verify_checksums: boolWhether to verify checksums on reads. Default: false.
readahead_size: usizeReadahead size hint in bytes for sequential iteration. 0 = auto. Default: 0.
RocksDB equivalent: readahead_size.
total_order_seek: boolIf true, ignore prefix bloom filters and do a total order seek. Default: false.
RocksDB equivalent: total_order_seek.
pin_data: boolIf true, pin data blocks in memory during iteration. Default: false.
RocksDB equivalent: pin_data.
Trait Implementations§
Source§impl Clone for ReadOptions
impl Clone for ReadOptions
Source§fn clone(&self) -> ReadOptions
fn clone(&self) -> ReadOptions
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ReadOptions
impl Debug for ReadOptions
Auto Trait Implementations§
impl Freeze for ReadOptions
impl RefUnwindSafe for ReadOptions
impl Send for ReadOptions
impl Sync for ReadOptions
impl Unpin for ReadOptions
impl UnsafeUnpin for ReadOptions
impl UnwindSafe for ReadOptions
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