pub struct MMapConfig {
pub enable_mmap: bool,
pub growth_threshold_kb: u64,
pub max_recursion_depth: u32,
}Expand description
Memory mapping configuration options
Fields§
§enable_mmap: bool§growth_threshold_kb: u64§max_recursion_depth: u32Implementations§
Source§impl MMapConfig
impl MMapConfig
Sourcepub fn with_growth_threshold(self, threshold_kb: u64) -> Self
pub fn with_growth_threshold(self, threshold_kb: u64) -> Self
Set custom growth threshold
Sourcepub fn with_max_recursion_depth(self, depth: u32) -> Self
pub fn with_max_recursion_depth(self, depth: u32) -> Self
Set custom recursion depth limit
Sourcepub fn should_enable_mmap(&self) -> bool
pub fn should_enable_mmap(&self) -> bool
Check if mmap should be enabled
Trait Implementations§
Source§impl Clone for MMapConfig
impl Clone for MMapConfig
Source§fn clone(&self) -> MMapConfig
fn clone(&self) -> MMapConfig
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 MMapConfig
impl Debug for MMapConfig
Auto Trait Implementations§
impl Freeze for MMapConfig
impl RefUnwindSafe for MMapConfig
impl Send for MMapConfig
impl Sync for MMapConfig
impl Unpin for MMapConfig
impl UnwindSafe for MMapConfig
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<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more