pub struct Forecast {
pub target: ForecastTarget,
pub killer: Option<OomKiller>,
pub eta_s: u64,
pub confidence: f64,
pub rate_per_min: f64,
pub window_s: u64,
}Expand description
OOM forecast. Present only when the trend is consistent (R² ≥ 0.6) and ETA < 30 min (SPEC §8.3).
Fields§
§target: ForecastTarget§killer: Option<OomKiller>Which killer acts at the target.
eta_s: u64§confidence: f640..1, the R² of the linear fit.
rate_per_min: f64Trend rate in bytes per minute (positive = growing towards the target).
window_s: u64Window used for the fit, seconds.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Forecast
impl<'de> Deserialize<'de> for Forecast
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for Forecast
Auto Trait Implementations§
impl Forget for Forecast
impl Freeze for Forecast
impl Move for Forecast
impl RefUnwindSafe for Forecast
impl Send for Forecast
impl Sync for Forecast
impl Unpin for Forecast
impl UnsafeUnpin for Forecast
impl UnwindSafe for Forecast
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