pub struct RuntimeMetrics { /* private fields */ }Implementations§
Source§impl RuntimeMetrics
impl RuntimeMetrics
Sourcepub fn new(core_count: usize, raft_group_count: usize) -> Self
pub fn new(core_count: usize, raft_group_count: usize) -> Self
Create an empty metric set sized for a runtime topology.
Sourcepub fn group_engine_metrics(&self) -> GroupEngineMetrics
pub fn group_engine_metrics(&self) -> GroupEngineMetrics
Return the metric handle passed to one group engine.
Sourcepub fn record_raft_snapshot_pressure(&self, groups: u64)
pub fn record_raft_snapshot_pressure(&self, groups: u64)
Records one aggregate Raft-log pressure snapshot pass.
Source§impl RuntimeMetrics
impl RuntimeMetrics
pub fn snapshot(&self) -> RuntimeMetricsSnapshot
Trait Implementations§
Source§impl Clone for RuntimeMetrics
impl Clone for RuntimeMetrics
Source§fn clone(&self) -> RuntimeMetrics
fn clone(&self) -> RuntimeMetrics
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for RuntimeMetrics
impl RefUnwindSafe for RuntimeMetrics
impl Send for RuntimeMetrics
impl Sync for RuntimeMetrics
impl Unpin for RuntimeMetrics
impl UnsafeUnpin for RuntimeMetrics
impl UnwindSafe for RuntimeMetrics
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