pub struct ResourceState {
pub proc_count: u32,
pub max_processes: u32,
pub mem_used: u64,
pub max_memory_bytes: u64,
pub hold_forks: bool,
pub held_notif_ids: Vec<u64>,
pub load_avg: LoadAvg,
pub start_instant: Instant,
}Expand description
Resource-limit runtime state shared across notification handlers.
Fields§
§proc_count: u32Live concurrent process count — incremented on fork, decremented on wait.
max_processes: u32Maximum allowed concurrent processes.
mem_used: u64Estimated anonymous memory usage (bytes).
max_memory_bytes: u64Maximum allowed anonymous memory (bytes).
hold_forks: boolWhether fork notifications should be held (checkpoint/freeze).
held_notif_ids: Vec<u64>Notification IDs held during a checkpoint freeze.
load_avg: LoadAvgExponentially-weighted load average.
start_instant: InstantInstant when the supervisor started (for uptime reporting).
Implementations§
Auto Trait Implementations§
impl Freeze for ResourceState
impl RefUnwindSafe for ResourceState
impl Send for ResourceState
impl Sync for ResourceState
impl Unpin for ResourceState
impl UnsafeUnpin for ResourceState
impl UnwindSafe for ResourceState
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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