pub struct TopicStats {
pub msg_in_counter: i64,
pub bytes_in_counter: i64,
pub publishers: Vec<Value>,
pub subscriptions: Value,
}Expand description
Topic stats. Intentionally permissive: the Java
PersistentTopicStatsImpl shape is large and shifts between releases;
we extract the high-signal counters and pass the rest through as raw JSON.
Fields§
§msg_in_counter: i64Total messages received.
bytes_in_counter: i64Total bytes received.
publishers: Vec<Value>Publishers, raw JSON because the schema is large and version-dependent.
subscriptions: ValueSubscriptions map (raw JSON).
Trait Implementations§
Source§impl Clone for TopicStats
impl Clone for TopicStats
Source§fn clone(&self) -> TopicStats
fn clone(&self) -> TopicStats
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 moreSource§impl Debug for TopicStats
impl Debug for TopicStats
Source§impl Default for TopicStats
impl Default for TopicStats
Source§fn default() -> TopicStats
fn default() -> TopicStats
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for TopicStatswhere
TopicStats: Default,
impl<'de> Deserialize<'de> for TopicStatswhere
TopicStats: Default,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for TopicStats
impl RefUnwindSafe for TopicStats
impl Send for TopicStats
impl Sync for TopicStats
impl Unpin for TopicStats
impl UnsafeUnpin for TopicStats
impl UnwindSafe for TopicStats
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