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
Source§fn clone(&self) -> PressureAnalysis
fn clone(&self) -> PressureAnalysis
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 moreAuto 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