pub struct ResourceStats {
pub uid: u32,
pub intervals: Vec<StatsInterval>,
pub extra: Value,
}
Expand description
Stats for a single resource
Fields§
§uid: u32
Unique identifier of the resource (node UID, database UID, etc.)
intervals: Vec<StatsInterval>
Time intervals with metrics for this specific resource
extra: Value
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 moreSource§impl Debug for ResourceStats
impl Debug for ResourceStats
Source§impl<'de> Deserialize<'de> for ResourceStats
impl<'de> Deserialize<'de> for ResourceStats
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 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