pub struct TelemetryExporter { /* private fields */ }Implementations§
Source§impl TelemetryExporter
impl TelemetryExporter
pub fn new() -> Self
pub fn with_prefix(prefix: impl Into<String>) -> Self
pub fn prefix(&self) -> &str
pub fn set_prefix(&mut self, prefix: impl Into<String>)
pub fn clear(&mut self)
pub fn shard_count(&self) -> usize
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 render_prometheus(&self) -> String
pub fn records(&self) -> Vec<TelemetryRecord>
pub fn registry(&self) -> &TelemetryRegistry
Trait Implementations§
Source§impl Clone for TelemetryExporter
impl Clone for TelemetryExporter
Source§fn clone(&self) -> TelemetryExporter
fn clone(&self) -> TelemetryExporter
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 TelemetryExporter
impl Debug for TelemetryExporter
Auto Trait Implementations§
impl Freeze for TelemetryExporter
impl RefUnwindSafe for TelemetryExporter
impl Send for TelemetryExporter
impl Sync for TelemetryExporter
impl Unpin for TelemetryExporter
impl UnsafeUnpin for TelemetryExporter
impl UnwindSafe for TelemetryExporter
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