pub struct ThreadsJson {
pub current_elapsed_ns: u64,
pub sample_interval_ms: u64,
pub threads: Vec<ThreadMetrics>,
pub thread_count: usize,
pub rss_bytes: Option<u64>,
}Expand description
JSON response structure for /threads endpoint
Fields§
§current_elapsed_ns: u64Current elapsed time since program start in nanoseconds
sample_interval_ms: u64Sample interval in milliseconds
threads: Vec<ThreadMetrics>Thread metrics
thread_count: usizeTotal number of threads
rss_bytes: Option<u64>Process RSS (Resident Set Size) in bytes
Trait Implementations§
Source§impl Clone for ThreadsJson
impl Clone for ThreadsJson
Source§fn clone(&self) -> ThreadsJson
fn clone(&self) -> ThreadsJson
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 moreSource§impl Debug for ThreadsJson
impl Debug for ThreadsJson
Source§impl<'de> Deserialize<'de> for ThreadsJson
impl<'de> Deserialize<'de> for ThreadsJson
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
Auto Trait Implementations§
impl Freeze for ThreadsJson
impl RefUnwindSafe for ThreadsJson
impl Send for ThreadsJson
impl Sync for ThreadsJson
impl Unpin for ThreadsJson
impl UnwindSafe for ThreadsJson
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