pub struct ResourceStats {
pub active_tasks: usize,
pub total_spawned: usize,
pub total_rejected: usize,
pub peak_concurrent: usize,
pub max_concurrent_tasks: usize,
pub uptime: Duration,
}Expand description
Resource usage statistics
Fields§
§active_tasks: usizeCurrently active async tasks
total_spawned: usizeTotal tasks spawned since start
total_rejected: usizeTotal tasks rejected due to limits
peak_concurrent: usizePeak concurrent tasks seen
max_concurrent_tasks: usizeConfigured maximum concurrent tasks
uptime: DurationTime since monitor started
Implementations§
Trait Implementations§
Source§impl Clone for ResourceStats
impl Clone for ResourceStats
Source§fn clone(&self) -> ResourceStats
fn clone(&self) -> ResourceStats
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 ResourceStats
impl RefUnwindSafe for ResourceStats
impl Send for ResourceStats
impl Sync for ResourceStats
impl Unpin for ResourceStats
impl UnwindSafe for ResourceStats
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Inspectable for T
impl<T> Inspectable for T
Source§fn inspect_if(self, condition: bool, label: &str) -> Selfwhere
Self: Debug,
fn inspect_if(self, condition: bool, label: &str) -> Selfwhere
Self: Debug,
Conditionally inspect this value
Source§fn inspect_with<F>(self, label: &str, f: F) -> Self
fn inspect_with<F>(self, label: &str, f: F) -> Self
Inspect with a custom formatter