pub struct TopicStats {
pub subscription_count: u64,
pub messages_published: u64,
pub bytes_published: u64,
pub avg_message_size: f64,
pub last_publish_time: Option<DateTime<Utc>>,
}Expand description
Topic statistics.
Fields§
§subscription_count: u64Number of subscriptions.
messages_published: u64Total messages published.
bytes_published: u64Total bytes published.
avg_message_size: f64Average message size.
last_publish_time: Option<DateTime<Utc>>Last publish time.
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 · 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 TopicStats
impl<'de> Deserialize<'de> for TopicStats
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request