pub struct LimitWarning {
pub name: TrackedLimit,
pub category: LimitCategory,
pub observed: usize,
pub capacity: usize,
pub fill_percent: usize,
}Expand description
A near-capacity event for one limit, delivered to the global warning sink at
the same edge as the tracing::warn!. This is the structured payload a host
hook (e.g. agentOS onLimitWarning) is built from.
Fields§
§name: TrackedLimit§category: LimitCategory§observed: usize§capacity: usize§fill_percent: usizeTrait Implementations§
Source§impl Clone for LimitWarning
impl Clone for LimitWarning
Source§fn clone(&self) -> LimitWarning
fn clone(&self) -> LimitWarning
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 moreAuto Trait Implementations§
impl Freeze for LimitWarning
impl RefUnwindSafe for LimitWarning
impl Send for LimitWarning
impl Sync for LimitWarning
impl Unpin for LimitWarning
impl UnsafeUnpin for LimitWarning
impl UnwindSafe for LimitWarning
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