pub struct PressureAnalysis {
pub level: PressureLevel,
pub available_percent: f64,
pub available_gb: f64,
pub safe_jobs: u32,
pub block_builds: bool,
pub recommendation: String,
}Expand description
Detailed memory pressure analysis
Fields§
§level: PressureLevelCurrent pressure level
available_percent: f64Available memory percentage
available_gb: f64Available memory in GB
safe_jobs: u32Safe number of parallel jobs
block_builds: boolWhether to block new builds
recommendation: StringHuman-readable recommendation
Implementations§
Source§impl PressureAnalysis
impl PressureAnalysis
Sourcepub fn from_metrics(metrics: &MemoryMetrics) -> Self
pub fn from_metrics(metrics: &MemoryMetrics) -> Self
Analyze memory metrics and return detailed analysis
Trait Implementations§
Source§impl Clone for PressureAnalysis
impl Clone for PressureAnalysis
Auto Trait Implementations§
impl Freeze for PressureAnalysis
impl RefUnwindSafe for PressureAnalysis
impl Send for PressureAnalysis
impl Sync for PressureAnalysis
impl Unpin for PressureAnalysis
impl UnsafeUnpin for PressureAnalysis
impl UnwindSafe for PressureAnalysis
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