pub struct VirtualMemoryConfig {
pub enable_vram: bool,
pub max_host_bytes: usize,
pub max_disk_bytes: usize,
pub disk_path: PathBuf,
pub auto_migrate: bool,
pub eviction_threshold: f64,
pub promotion_threshold: u32,
}Expand description
Configuration for virtual memory
Fields§
§enable_vram: boolEnable VRAM tier (requires CUDA)
max_host_bytes: usizeMaximum host memory to use (bytes)
max_disk_bytes: usizeMaximum disk space to use (bytes)
disk_path: PathBufDirectory for disk-backed storage
auto_migrate: boolEnable automatic tier migration
eviction_threshold: f64LRU eviction threshold (0.0-1.0, evict when tier is this full)
promotion_threshold: u32Minimum access count before promotion to faster tier
Trait Implementations§
Source§impl Clone for VirtualMemoryConfig
impl Clone for VirtualMemoryConfig
Source§fn clone(&self) -> VirtualMemoryConfig
fn clone(&self) -> VirtualMemoryConfig
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 VirtualMemoryConfig
impl Debug for VirtualMemoryConfig
Auto Trait Implementations§
impl Freeze for VirtualMemoryConfig
impl RefUnwindSafe for VirtualMemoryConfig
impl Send for VirtualMemoryConfig
impl Sync for VirtualMemoryConfig
impl Unpin for VirtualMemoryConfig
impl UnwindSafe for VirtualMemoryConfig
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