Struct narwhal_primary::PrimaryChannelMetrics 
source · [−]pub struct PrimaryChannelMetrics {Show 20 fields
    pub tx_others_digests: IntGauge,
    pub tx_our_digests: IntGauge,
    pub tx_parents: IntGauge,
    pub tx_headers: IntGauge,
    pub tx_sync_headers: IntGauge,
    pub tx_sync_certificates: IntGauge,
    pub tx_headers_loopback: IntGauge,
    pub tx_certificates_loopback: IntGauge,
    pub tx_primary_messages: IntGauge,
    pub tx_helper_requests: IntGauge,
    pub tx_get_block_commands: IntGauge,
    pub tx_batches: IntGauge,
    pub tx_block_removal_commands: IntGauge,
    pub tx_batch_removal: IntGauge,
    pub tx_block_synchronizer_commands: IntGauge,
    pub tx_availability_responses: IntGauge,
    pub tx_state_handler: IntGauge,
    pub tx_reconfigure: IntGauge,
    pub tx_committed_certificates: IntGauge,
    pub tx_new_certificates: IntGauge,
}Fields
tx_others_digests: IntGaugeoccupancy of the channel from the primary::WorkerReceiverHandler to the primary::PayloadReceiver
tx_our_digests: IntGaugeoccupancy of the channel from the primary::WorkerReceiverHandler to the primary::Proposer
tx_parents: IntGaugeoccupancy of the channel from the primary::Core to the primary::Proposer
tx_headers: IntGaugeoccupancy of the channel from the primary::Proposer to the primary::Core
tx_sync_headers: IntGaugeoccupancy of the channel from the primary::Synchronizer to the primary::HeaderWaiter
tx_sync_certificates: IntGaugeoccupancy of the channel from the primary::Synchronizer to the primary::CertificaterWaiter
tx_headers_loopback: IntGaugeoccupancy of the channel from the primary::HeaderWaiter to the primary::Core
tx_certificates_loopback: IntGaugeoccupancy of the channel from the primary::CertificateWaiter to the primary::Core
tx_primary_messages: IntGaugeoccupancy of the channel from the primary::PrimaryReceiverHandler to the primary::Core
tx_helper_requests: IntGaugeoccupancy of the channel from the primary::PrimaryReceiverHandler to the primary::Helper
tx_get_block_commands: IntGaugeoccupancy of the channel from the primary::ConsensusAPIGrpc (when external consensus is being
used) & executor::Subscriber (when internal consensus, ex Bullshark, is being used)  to
the primary::BlockWaiter.
tx_batches: IntGaugeoccupancy of the channel from the primary::WorkerReceiverHandler to the primary::BlockWaiter
tx_block_removal_commands: IntGaugeoccupancy of the channel from the primary::ConsensusAPIGrpc to the primary::BlockRemover
tx_batch_removal: IntGaugeoccupancy of the channel from the primary::WorkerReceiverHandler to the primary::BlockRemover
tx_block_synchronizer_commands: IntGaugeoccupancy of the channel from the primary::BlockSynchronizerHandler to the primary::BlockSynchronizer
tx_availability_responses: IntGaugeoccupancy of the channel from the primary::PrimaryReceiverHandler to the primary::BlockSynchronizer
tx_state_handler: IntGaugeoccupancy of the channel from the primary::WorkerReceiverHandler to the primary::StateHandler
tx_reconfigure: IntGaugeoccupancy of the channel from the reconfigure notification to most components.
tx_committed_certificates: IntGaugeoccupancy of the channel from the Consensus to the primary::Core
tx_new_certificates: IntGaugeoccupancy of the channel from the primary::Core to the Consensus
Implementations
sourceimpl PrimaryChannelMetrics
 
impl PrimaryChannelMetrics
pub const NAME_COMMITTED_CERTS: &'static str = "tx_committed_certificates"
pub const DESC_COMMITTED_CERTS: &'static str = "occupancy of the channel from the `Consensus` to the `primary::Core`"
pub const NAME_NEW_CERTS: &'static str = "tx_new_certificates"
pub const DESC_NEW_CERTS: &'static str = "occupancy of the channel from the `primary::Core` to the `Consensus`"
pub const NAME_GET_BLOCK_COMMANDS: &'static str = "tx_get_block_commands"
pub const DESC_GET_BLOCK_COMMANDS: &'static str = "occupancy of the channel from the `primary::ConsensusAPIGrpc` & `executor::Subscriber` to the `primary::BlockWaiter`"
pub fn new(registry: &Registry) -> Self
pub fn replace_registered_new_certificates_metric(
    &mut self,
    registry: &Registry,
    collector: Box<GenericGauge<AtomicI64>>
)
pub fn replace_registered_committed_certificates_metric(
    &mut self,
    registry: &Registry,
    collector: Box<GenericGauge<AtomicI64>>
)
pub fn replace_registered_get_block_commands_metric(
    &mut self,
    registry: &Registry,
    collector: Box<GenericGauge<AtomicI64>>
)
Trait Implementations
sourceimpl Clone for PrimaryChannelMetrics
 
impl Clone for PrimaryChannelMetrics
sourcefn clone(&self) -> PrimaryChannelMetrics
 
fn clone(&self) -> PrimaryChannelMetrics
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
 
fn clone_from(&mut self, source: &Self)
source. Read moreAuto Trait Implementations
impl RefUnwindSafe for PrimaryChannelMetrics
impl Send for PrimaryChannelMetrics
impl Sync for PrimaryChannelMetrics
impl Unpin for PrimaryChannelMetrics
impl UnwindSafe for PrimaryChannelMetrics
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
    T: ?Sized,
 
impl<T> BorrowMut<T> for Twhere
    T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
 
fn borrow_mut(&mut self) -> &mut T
sourceimpl<T> Instrument for T
 
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
 
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
 
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> IntoRequest<T> for T
 
impl<T> IntoRequest<T> for T
sourcefn into_request(self) -> Request<T>
 
fn into_request(self) -> Request<T>
T in a tonic::Requestimpl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a Requestimpl<T> Pipe for Twhere
    T: ?Sized,
impl<T> Pipe for Twhere
    T: ?Sized,
fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> Rwhere
    R: 'a,
fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> Rwhere
    R: 'a,
self and passes that borrow into the pipe function. Read morefn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> Rwhere
    R: 'a,
fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> Rwhere
    R: 'a,
self and passes that borrow into the pipe function. Read morefn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> Rwhere
    Self: Borrow<B>,
    B: 'a + ?Sized,
    R: 'a,
fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> Rwhere
    Self: Borrow<B>,
    B: 'a + ?Sized,
    R: 'a,
fn pipe_borrow_mut<'a, B, R>(
    &'a mut self,
    func: impl FnOnce(&'a mut B) -> R
) -> Rwhere
    Self: BorrowMut<B>,
    B: 'a + ?Sized,
    R: 'a,
fn pipe_borrow_mut<'a, B, R>(
    &'a mut self,
    func: impl FnOnce(&'a mut B) -> R
) -> Rwhere
    Self: BorrowMut<B>,
    B: 'a + ?Sized,
    R: 'a,
fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> Rwhere
    Self: AsRef<U>,
    U: 'a + ?Sized,
    R: 'a,
fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> Rwhere
    Self: AsRef<U>,
    U: 'a + ?Sized,
    R: 'a,
self, then passes self.as_ref() into the pipe function.fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> Rwhere
    Self: AsMut<U>,
    U: 'a + ?Sized,
    R: 'a,
fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> Rwhere
    Self: AsMut<U>,
    U: 'a + ?Sized,
    R: 'a,
fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> Rwhere
    Self: Deref<Target = T>,
    T: 'a + ?Sized,
    R: 'a,
fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> Rwhere
    Self: Deref<Target = T>,
    T: 'a + ?Sized,
    R: 'a,
self, then passes self.deref() into the pipe function.impl<T> Pointable for T
impl<T> Pointable for T
impl<T> Tap for T
impl<T> Tap for T
fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Selfwhere
    Self: Borrow<B>,
    B: ?Sized,
fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Selfwhere
    Self: Borrow<B>,
    B: ?Sized,
Borrow<B> of a value. Read morefn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Selfwhere
    Self: BorrowMut<B>,
    B: ?Sized,
fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Selfwhere
    Self: BorrowMut<B>,
    B: ?Sized,
BorrowMut<B> of a value. Read morefn tap_ref<R>(self, func: impl FnOnce(&R)) -> Selfwhere
    Self: AsRef<R>,
    R: ?Sized,
fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Selfwhere
    Self: AsRef<R>,
    R: ?Sized,
AsRef<R> view of a value. Read morefn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Selfwhere
    Self: AsMut<R>,
    R: ?Sized,
fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Selfwhere
    Self: AsMut<R>,
    R: ?Sized,
AsMut<R> view of a value. Read morefn tap_deref<T>(self, func: impl FnOnce(&T)) -> Selfwhere
    Self: Deref<Target = T>,
    T: ?Sized,
fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Selfwhere
    Self: Deref<Target = T>,
    T: ?Sized,
Deref::Target of a value. Read morefn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Selfwhere
    Self: DerefMut<Target = T> + Deref,
    T: ?Sized,
fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Selfwhere
    Self: DerefMut<Target = T> + Deref,
    T: ?Sized,
Deref::Target of a value. Read morefn tap_dbg(self, func: impl FnOnce(&Self)) -> Self
fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self
.tap() only in debug builds, and is erased in release builds.fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self
fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self
.tap_mut() only in debug builds, and is erased in release
builds. Read morefn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Selfwhere
    Self: Borrow<B>,
    B: ?Sized,
fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Selfwhere
    Self: Borrow<B>,
    B: ?Sized,
.tap_borrow() only in debug builds, and is erased in release
builds. Read morefn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Selfwhere
    Self: BorrowMut<B>,
    B: ?Sized,
fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Selfwhere
    Self: BorrowMut<B>,
    B: ?Sized,
.tap_borrow_mut() only in debug builds, and is erased in release
builds. Read morefn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Selfwhere
    Self: AsRef<R>,
    R: ?Sized,
fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Selfwhere
    Self: AsRef<R>,
    R: ?Sized,
.tap_ref() only in debug builds, and is erased in release
builds. Read morefn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Selfwhere
    Self: AsMut<R>,
    R: ?Sized,
fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Selfwhere
    Self: AsMut<R>,
    R: ?Sized,
.tap_ref_mut() only in debug builds, and is erased in release
builds. Read more