Struct oasis_core_runtime::consensus::roothash::LivenessStatistics
source · pub struct LivenessStatistics {
pub total_rounds: u64,
pub good_rounds: Vec<u64>,
pub finalized_proposals: Vec<u64>,
pub missed_proposals: Vec<u64>,
}
Expand description
Per-epoch liveness statistics for nodes.
Fields§
§total_rounds: u64
Total number of rounds in the last epoch, excluding any rounds generated by the roothash service itself.
good_rounds: Vec<u64>
A list of counters, specified in committee order (e.g. counter at index i has the value for node i in the committee).
finalized_proposals: Vec<u64>
A list that records the number of finalized rounds when a node acted as a proposed with the highest rank.
The list is ordered according to the committee arrangement (i.e., the counter at index i holds the value for the node at index i in the committee).
missed_proposals: Vec<u64>
A list that records the number of failed rounds when a node/ acted as a proposer with the highest rank.
The list is ordered according to the committee arrangement (i.e., the counter at index i holds the value for the node at index i in the committee).
Trait Implementations§
source§impl Clone for LivenessStatistics
impl Clone for LivenessStatistics
source§fn clone(&self) -> LivenessStatistics
fn clone(&self) -> LivenessStatistics
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for LivenessStatistics
impl Debug for LivenessStatistics
source§impl Decode for LivenessStatistics
impl Decode for LivenessStatistics
source§fn try_default() -> Result<Self, DecodeError>
fn try_default() -> Result<Self, DecodeError>
source§fn try_from_cbor_value(value: Value) -> Result<Self, DecodeError>
fn try_from_cbor_value(value: Value) -> Result<Self, DecodeError>
§fn try_from_cbor_value_default(value: Value) -> Result<Self, DecodeError>where
Self: Sized,
fn try_from_cbor_value_default(value: Value) -> Result<Self, DecodeError>where
Self: Sized,
try_default
in case the value is null or
undefined.source§impl Default for LivenessStatistics
impl Default for LivenessStatistics
source§fn default() -> LivenessStatistics
fn default() -> LivenessStatistics
source§impl Encode for LivenessStatistics
impl Encode for LivenessStatistics
source§impl EncodeAsMap for LivenessStatistics
impl EncodeAsMap for LivenessStatistics
§fn into_cbor_value_map(self) -> Valuewhere
Self: Sized,
fn into_cbor_value_map(self) -> Valuewhere
Self: Sized,
§fn into_cbor_map(self) -> Vec<(Value, Value)>where
Self: Sized,
fn into_cbor_map(self) -> Vec<(Value, Value)>where
Self: Sized,
source§impl PartialEq for LivenessStatistics
impl PartialEq for LivenessStatistics
source§fn eq(&self, other: &LivenessStatistics) -> bool
fn eq(&self, other: &LivenessStatistics) -> bool
self
and other
values to be equal, and is used
by ==
.impl Eq for LivenessStatistics
impl StructuralPartialEq for LivenessStatistics
Auto Trait Implementations§
impl Freeze for LivenessStatistics
impl RefUnwindSafe for LivenessStatistics
impl Send for LivenessStatistics
impl Sync for LivenessStatistics
impl Unpin for LivenessStatistics
impl UnwindSafe for LivenessStatistics
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.