pub struct NodeMetrics {
pub node_id: Principal,
pub num_blocks_proposed_total: u64,
pub num_block_failures_total: u64,
}Expand description
§Node Metrics.
Fields§
§node_id: PrincipalNode ID.
num_blocks_proposed_total: u64Number of blocks proposed by this node.
num_block_failures_total: u64Number of failed block proposals by this node.
Trait Implementations§
Source§impl CandidType for NodeMetrics
impl CandidType for NodeMetrics
Source§impl Clone for NodeMetrics
impl Clone for NodeMetrics
Source§fn clone(&self) -> NodeMetrics
fn clone(&self) -> NodeMetrics
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 NodeMetrics
impl Debug for NodeMetrics
Source§impl<'de> Deserialize<'de> for NodeMetrics
impl<'de> Deserialize<'de> for NodeMetrics
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<NodeMetrics, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<NodeMetrics, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Hash for NodeMetrics
impl Hash for NodeMetrics
Source§impl Ord for NodeMetrics
impl Ord for NodeMetrics
Source§fn cmp(&self, other: &NodeMetrics) -> Ordering
fn cmp(&self, other: &NodeMetrics) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for NodeMetrics
impl PartialEq for NodeMetrics
Source§impl PartialOrd for NodeMetrics
impl PartialOrd for NodeMetrics
Source§impl Serialize for NodeMetrics
impl Serialize for NodeMetrics
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Eq for NodeMetrics
impl StructuralPartialEq for NodeMetrics
Auto Trait Implementations§
impl Freeze for NodeMetrics
impl RefUnwindSafe for NodeMetrics
impl Send for NodeMetrics
impl Sync for NodeMetrics
impl Unpin for NodeMetrics
impl UnwindSafe for NodeMetrics
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