pub struct ReadOptions {
pub verify_checksums: bool,
pub fill_cache: bool,
}Expand description
The read options to use for any read operation.
Fields§
§verify_checksums: boolWhether to verify the saved checksums on read.
default: false
fill_cache: boolWhether to fill the internal cache with the results of the read.
default: true
Implementations§
Source§impl ReadOptions
impl ReadOptions
Sourcepub fn new() -> ReadOptions
pub fn new() -> ReadOptions
Return a ReadOptions struct with the default values.
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
Source§impl Default for ReadOptions
impl Default for ReadOptions
impl Copy 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 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