Trait MemoryComponent
pub trait MemoryComponent: NerveComponent {
// Required methods
fn memory_usage(&self) -> u64;
fn memory_utilization(&self) -> f64;
fn is_memory_critical(&self) -> bool;
}Expand description
Memory management component interface
Required Methods§
fn memory_usage(&self) -> u64
fn memory_usage(&self) -> u64
Get current memory usage in bytes
fn memory_utilization(&self) -> f64
fn memory_utilization(&self) -> f64
Get memory utilization percentage
fn is_memory_critical(&self) -> bool
fn is_memory_critical(&self) -> bool
Check if memory is critically low