Struct kaspa_cli_lib::metrics::data::MetricsSnapshot
source · pub struct MetricsSnapshot {Show 26 fields
pub data: MetricsData,
pub unixtime: f64,
pub duration: f64,
pub resident_set_size_bytes: f64,
pub virtual_memory_size_bytes: f64,
pub cpu_cores: f64,
pub cpu_usage: f64,
pub fd_num: f64,
pub disk_io_read_bytes: f64,
pub disk_io_write_bytes: f64,
pub disk_io_read_per_sec: f64,
pub disk_io_write_per_sec: f64,
pub blocks_submitted: f64,
pub header_counts: f64,
pub dep_counts: f64,
pub body_counts: f64,
pub txs_counts: f64,
pub tps: f64,
pub chain_block_counts: f64,
pub mass_counts: f64,
pub block_count: f64,
pub tip_hashes: f64,
pub difficulty: f64,
pub past_median_time: f64,
pub virtual_parent_hashes: f64,
pub virtual_daa_score: f64,
}Fields§
§data: MetricsData§unixtime: f64§duration: f64§resident_set_size_bytes: f64§virtual_memory_size_bytes: f64§cpu_cores: f64§cpu_usage: f64§fd_num: f64§disk_io_read_bytes: f64§disk_io_write_bytes: f64§disk_io_read_per_sec: f64§disk_io_write_per_sec: f64§blocks_submitted: f64§header_counts: f64§dep_counts: f64§body_counts: f64§txs_counts: f64§tps: f64§chain_block_counts: f64§mass_counts: f64§block_count: f64§tip_hashes: f64§difficulty: f64§past_median_time: f64§virtual_parent_hashes: f64§virtual_daa_score: f64Implementations§
Trait Implementations§
source§impl BorshDeserialize for MetricsSnapshotwhere
MetricsData: BorshDeserialize,
f64: BorshDeserialize,
impl BorshDeserialize for MetricsSnapshotwhere MetricsData: BorshDeserialize, f64: BorshDeserialize,
source§impl BorshSerialize for MetricsSnapshotwhere
MetricsData: BorshSerialize,
f64: BorshSerialize,
impl BorshSerialize for MetricsSnapshotwhere MetricsData: BorshSerialize, f64: BorshSerialize,
source§impl Clone for MetricsSnapshot
impl Clone for MetricsSnapshot
source§fn clone(&self) -> MetricsSnapshot
fn clone(&self) -> MetricsSnapshot
Returns a copy 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 MetricsSnapshot
impl Debug for MetricsSnapshot
source§impl Default for MetricsSnapshot
impl Default for MetricsSnapshot
source§fn default() -> MetricsSnapshot
fn default() -> MetricsSnapshot
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for MetricsSnapshot
impl<'de> Deserialize<'de> for MetricsSnapshot
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
source§impl From<(&MetricsData, &MetricsData)> for MetricsSnapshot
impl From<(&MetricsData, &MetricsData)> for MetricsSnapshot
source§fn from((a, b): (&MetricsData, &MetricsData)) -> Self
fn from((a, b): (&MetricsData, &MetricsData)) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl RefUnwindSafe for MetricsSnapshot
impl Send for MetricsSnapshot
impl Sync for MetricsSnapshot
impl Unpin for MetricsSnapshot
impl UnwindSafe for MetricsSnapshot
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
§impl<T> CastFrom for Twhere
T: Any + 'static,
impl<T> CastFrom for Twhere T: Any + 'static,
§fn ref_any(&self) -> &(dyn Any + 'static)
fn ref_any(&self) -> &(dyn Any + 'static)
Returns a immutable reference to
Any, which is backed by the type implementing this trait.§fn mut_any(&mut self) -> &mut (dyn Any + 'static)
fn mut_any(&mut self) -> &mut (dyn Any + 'static)
Returns a mutable reference to
Any, which is backed by the type implementing this trait.§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.