pub struct TelemetryRegistry { /* private fields */ }Implementations§
Source§impl TelemetryRegistry
impl TelemetryRegistry
pub fn new() -> Self
pub fn clear(&mut self)
pub fn is_empty(&self) -> bool
pub fn shard_count(&self) -> usize
pub fn shard_snapshot(&self, shard_id: usize) -> Option<&ShardTelemetrySnapshot>
pub fn iter_shards( &self, ) -> impl Iterator<Item = (usize, &ShardTelemetrySnapshot)>
pub fn ingest_snapshot( &mut self, shard_id: usize, snapshot: TransportMetricsSnapshot, dropped_non_critical_events: u64, )
pub fn ingest_server_event(&mut self, event: &RaknetServerEvent) -> bool
pub fn aggregate(&self) -> AggregatedTelemetrySnapshot
pub fn to_records(&self) -> Vec<TelemetryRecord>
pub fn to_records_with_prefix(&self, prefix: &str) -> Vec<TelemetryRecord>
pub fn render_prometheus(&self) -> String
pub fn render_prometheus_with_prefix(&self, prefix: &str) -> String
Trait Implementations§
Source§impl Clone for TelemetryRegistry
impl Clone for TelemetryRegistry
Source§fn clone(&self) -> TelemetryRegistry
fn clone(&self) -> TelemetryRegistry
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 TelemetryRegistry
impl Debug for TelemetryRegistry
Source§impl Default for TelemetryRegistry
impl Default for TelemetryRegistry
Source§fn default() -> TelemetryRegistry
fn default() -> TelemetryRegistry
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for TelemetryRegistry
impl RefUnwindSafe for TelemetryRegistry
impl Send for TelemetryRegistry
impl Sync for TelemetryRegistry
impl Unpin for TelemetryRegistry
impl UnsafeUnpin for TelemetryRegistry
impl UnwindSafe for TelemetryRegistry
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