pub struct StreamingPressure {
pub rss_bytes: u64,
pub budget_bytes: u64,
pub under_pressure: bool,
}Expand description
Live process-RAM pressure on streaming, published by StreamingSystem on each
throttled sample when a MemoryBudget is present. under_pressure is true
whenever the back-off valve is engaged (gating loads or evicting). Read by the
debug server’s streaming command for headless verification; harmless (and
unread) in a plain cn run. Absent entirely when no MemoryBudget is
published or RSS cannot be queried, in which case the valve is inert.
Fields§
§rss_bytes: u64Process resident-set size at the sample.
budget_bytes: u64The published memory budget.
under_pressure: boolWhether the back-off valve is engaged.
Trait Implementations§
Source§impl Clone for StreamingPressure
impl Clone for StreamingPressure
Source§fn clone(&self) -> StreamingPressure
fn clone(&self) -> StreamingPressure
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for StreamingPressure
Auto Trait Implementations§
impl Freeze for StreamingPressure
impl RefUnwindSafe for StreamingPressure
impl Send for StreamingPressure
impl Sync for StreamingPressure
impl Unpin for StreamingPressure
impl UnsafeUnpin for StreamingPressure
impl UnwindSafe for StreamingPressure
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<S, T> Duplex<S> for Twhere
T: FromSample<S> + ToSample<S>,
Source§impl<S> FromSample<S> for S
impl<S> FromSample<S> for S
fn from_sample_(s: S) -> S
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more