pub struct MemoryMappedConfig {
pub base_dir: PathBuf,
pub initial_size: usize,
pub growth_factor: f32,
pub auto_sync: bool,
pub sync_frequency: usize,
pub use_locking: bool,
pub prefault: bool,
}Expand description
Configuration for memory-mapped optimizer states
Fields§
§base_dir: PathBufBase directory for memory-mapped files
initial_size: usizeInitial size for memory-mapped files (in bytes)
growth_factor: f32Growth factor when expanding files
auto_sync: boolWhether to sync to disk automatically
sync_frequency: usizeSync frequency (every N operations)
use_locking: boolWhether to use advisory locking
prefault: boolWhether to prefault pages
Trait Implementations§
Source§impl Clone for MemoryMappedConfig
impl Clone for MemoryMappedConfig
Source§fn clone(&self) -> MemoryMappedConfig
fn clone(&self) -> MemoryMappedConfig
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 MemoryMappedConfig
impl Debug for MemoryMappedConfig
Auto Trait Implementations§
impl Freeze for MemoryMappedConfig
impl RefUnwindSafe for MemoryMappedConfig
impl Send for MemoryMappedConfig
impl Sync for MemoryMappedConfig
impl Unpin for MemoryMappedConfig
impl UnsafeUnpin for MemoryMappedConfig
impl UnwindSafe for MemoryMappedConfig
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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