pub struct MemoryManager { /* private fields */ }Implementations§
Source§impl MemoryManager
impl MemoryManager
pub fn new(config: MemoryConfig) -> Result<Self, MemoryError>
pub fn resize_memory_budget(&self, new_budget: usize) -> Result<(), MemoryError>
pub fn set_component_usage(&self, component: MemoryComponent, bytes: usize)
Sourcepub fn trigger_gc(&self) -> Result<(), MemoryError>
pub fn trigger_gc(&self) -> Result<(), MemoryError>
Applies configured component caps and gives any remaining budget to the block cache. This is the explicit, synchronous eviction boundary exposed to operators; transport/WAL owners can call it before releasing storage.
pub fn get_memory_stats(&self) -> MemoryStats
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for MemoryManager
impl RefUnwindSafe for MemoryManager
impl Send for MemoryManager
impl Sync for MemoryManager
impl Unpin for MemoryManager
impl UnsafeUnpin for MemoryManager
impl UnwindSafe for MemoryManager
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