pub struct MempoolCountersSnapshot {
pub elapsed_time: Duration,
pub high_priority_tx_counts: u64,
pub low_priority_tx_counts: u64,
pub block_tx_counts: u64,
pub tx_accepted_counts: u64,
pub tx_evicted_counts: u64,
pub input_counts: u64,
pub output_counts: u64,
pub ready_txs_sample: u64,
pub txs_sample: u64,
pub orphans_sample: u64,
pub accepted_sample: u64,
}Fields§
§elapsed_time: Duration§high_priority_tx_counts: u64§low_priority_tx_counts: u64§block_tx_counts: u64§tx_accepted_counts: u64§tx_evicted_counts: u64§input_counts: u64§output_counts: u64§ready_txs_sample: u64§txs_sample: u64§orphans_sample: u64§accepted_sample: u64Implementations§
Source§impl MempoolCountersSnapshot
impl MempoolCountersSnapshot
pub fn in_tx_counts(&self) -> u64
Sourcepub fn has_tps_activity(&self) -> bool
pub fn has_tps_activity(&self) -> bool
Indicates whether this snapshot has any TPS activity which is worth logging
Sourcepub fn u_tps(&self) -> f64
pub fn u_tps(&self) -> f64
Returns an estimate of Unique-TPS, i.e. the number of unique transactions per second on average (excluding coinbase transactions)
Sourcepub fn e_tps(&self) -> f64
pub fn e_tps(&self) -> f64
Returns an estimate to the Effective-TPS fraction which is a measure of how much of DAG capacity
is utilized compared to the number of available mempool transactions. For instance a max
value of 1.0 indicates that we cannot do any better in terms of throughput vs. current
demand. A value close to 0.0 means that DAG capacity is mostly filled with duplicate
transactions even though the mempool (demand) offers a much larger amount of unique transactions.
Trait Implementations§
Source§impl Debug for MempoolCountersSnapshot
impl Debug for MempoolCountersSnapshot
Source§impl PartialEq for MempoolCountersSnapshot
impl PartialEq for MempoolCountersSnapshot
Source§impl Sub for &MempoolCountersSnapshot
impl Sub for &MempoolCountersSnapshot
impl Eq for MempoolCountersSnapshot
impl StructuralPartialEq for MempoolCountersSnapshot
Auto Trait Implementations§
impl Freeze for MempoolCountersSnapshot
impl RefUnwindSafe for MempoolCountersSnapshot
impl Send for MempoolCountersSnapshot
impl Sync for MempoolCountersSnapshot
impl Unpin for MempoolCountersSnapshot
impl UnwindSafe for MempoolCountersSnapshot
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<S> CastArc for Swhere
S: CastFromSync + ?Sized,
impl<S> CastArc for Swhere
S: CastFromSync + ?Sized,
Source§impl<T> CastFrom for Twhere
T: Any + 'static,
impl<T> CastFrom for Twhere
T: Any + 'static,
Source§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.Source§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.Source§impl<T> CastFromSync for T
impl<T> CastFromSync for T
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more