pub struct StatsRegistry(/* private fields */);Implementations§
Source§impl StatsRegistry
impl StatsRegistry
pub fn new( zid: ZenohIdProto, whatami: WhatAmI, build_version: impl Into<String>, ) -> Self
pub fn inc_resource_declared( &self, resource: ResourceLabel, locality: LocalityLabel, )
pub fn dec_resource_declared( &self, resource: ResourceLabel, locality: LocalityLabel, )
pub fn encode_metrics( &self, writer: &mut impl Write, per_transport: bool, per_link: bool, disconnected: bool, per_key: bool, ) -> Result
pub fn merge_stats(&self, json: &mut Value)
pub fn unicast_transport_stats( &self, zid: ZenohIdProto, whatami: WhatAmI, cn: Option<String>, ) -> TransportStats
pub fn multicast_transport_stats(&self, group: String) -> TransportStats
pub fn update_keys<'a>( &self, tree: &mut StatsKeysTree, keyexprs: impl IntoIterator<Item = &'a keyexpr>, )
Trait Implementations§
Source§impl Clone for StatsRegistry
impl Clone for StatsRegistry
Source§fn clone(&self) -> StatsRegistry
fn clone(&self) -> StatsRegistry
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 moreAuto Trait Implementations§
impl Freeze for StatsRegistry
impl !RefUnwindSafe for StatsRegistry
impl Send for StatsRegistry
impl Sync for StatsRegistry
impl Unpin for StatsRegistry
impl UnsafeUnpin for StatsRegistry
impl !UnwindSafe for StatsRegistry
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