pub struct PreloadConfig {
pub max_bytes: u64,
pub max_millis: u64,
pub load_lns: bool,
}Expand description
Configuration for database preloading.
Fields§
§max_bytes: u64Maximum bytes to load (0 = unlimited).
max_millis: u64Maximum time in milliseconds (0 = unlimited).
load_lns: boolWhether to also load leaf node data (not just BINs).
Implementations§
Source§impl PreloadConfig
impl PreloadConfig
Sourcepub fn with_max_bytes(self, max_bytes: u64) -> Self
pub fn with_max_bytes(self, max_bytes: u64) -> Self
Builder-style: set max_bytes.
Sourcepub fn with_max_millis(self, max_millis: u64) -> Self
pub fn with_max_millis(self, max_millis: u64) -> Self
Builder-style: set max_millis.
Sourcepub fn with_load_lns(self, load_lns: bool) -> Self
pub fn with_load_lns(self, load_lns: bool) -> Self
Builder-style: set load_lns.
Trait Implementations§
Source§impl Clone for PreloadConfig
impl Clone for PreloadConfig
Source§fn clone(&self) -> PreloadConfig
fn clone(&self) -> PreloadConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 PreloadConfig
impl Debug for PreloadConfig
Source§impl Default for PreloadConfig
impl Default for PreloadConfig
impl Eq for PreloadConfig
Source§impl PartialEq for PreloadConfig
impl PartialEq for PreloadConfig
Source§fn eq(&self, other: &PreloadConfig) -> bool
fn eq(&self, other: &PreloadConfig) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for PreloadConfig
Auto Trait Implementations§
impl Freeze for PreloadConfig
impl RefUnwindSafe for PreloadConfig
impl Send for PreloadConfig
impl Sync for PreloadConfig
impl Unpin for PreloadConfig
impl UnsafeUnpin for PreloadConfig
impl UnwindSafe for PreloadConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.