pub struct MemoryOptimizationManager { /* private fields */ }Expand description
Memory optimization manager that coordinates all memory optimization components
Implementations§
Source§impl MemoryOptimizationManager
impl MemoryOptimizationManager
Sourcepub fn with_configs(
pool_config: ConnectionPoolConfig,
cache_config: CandidateCacheConfig,
cleanup_config: SessionCleanupConfig,
batching_config: FrameBatchingConfig,
) -> Self
pub fn with_configs( pool_config: ConnectionPoolConfig, cache_config: CandidateCacheConfig, cleanup_config: SessionCleanupConfig, batching_config: FrameBatchingConfig, ) -> Self
Create a new memory optimization manager with custom configurations
Sourcepub async fn start(&mut self) -> Result<(), Box<dyn Error + Send + Sync>>
pub async fn start(&mut self) -> Result<(), Box<dyn Error + Send + Sync>>
Start all memory optimization components
Sourcepub fn connection_pool(&self) -> &ConnectionPool
pub fn connection_pool(&self) -> &ConnectionPool
Get connection pool reference
Sourcepub fn candidate_cache(&self) -> &CandidateCache
pub fn candidate_cache(&self) -> &CandidateCache
Get candidate cache reference
Sourcepub fn session_cleanup(&self) -> &SessionCleanupCoordinator
pub fn session_cleanup(&self) -> &SessionCleanupCoordinator
Get session cleanup coordinator reference
Sourcepub fn frame_batching(&self) -> &FrameBatchingCoordinator
pub fn frame_batching(&self) -> &FrameBatchingCoordinator
Get frame batching coordinator reference
Sourcepub async fn get_comprehensive_stats(&self) -> MemoryOptimizationStats
pub async fn get_comprehensive_stats(&self) -> MemoryOptimizationStats
Get comprehensive memory optimization statistics
Trait Implementations§
Source§impl Debug for MemoryOptimizationManager
impl Debug for MemoryOptimizationManager
Auto Trait Implementations§
impl Freeze for MemoryOptimizationManager
impl RefUnwindSafe for MemoryOptimizationManager
impl Send for MemoryOptimizationManager
impl Sync for MemoryOptimizationManager
impl Unpin for MemoryOptimizationManager
impl UnwindSafe for MemoryOptimizationManager
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