pub enum ConsumerStats {
JustConsumer((ConsumerStat,)),
WithProducer((ConsumerStat, ProducerStat)),
}
Expand description
RTC statistics of the consumer, may or may not include producer statistics.
Variants§
JustConsumer((ConsumerStat,))
RTC statistics without producer
WithProducer((ConsumerStat, ProducerStat))
RTC statistics with producer
Implementations§
Source§impl ConsumerStats
impl ConsumerStats
Sourcepub fn consumer_stats(&self) -> &ConsumerStat
pub fn consumer_stats(&self) -> &ConsumerStat
RTC statistics of the consumer
Trait Implementations§
Source§impl Debug for ConsumerStats
impl Debug for ConsumerStats
Source§impl<'de> Deserialize<'de> for ConsumerStats
impl<'de> Deserialize<'de> for ConsumerStats
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 ConsumerStats
impl RefUnwindSafe for ConsumerStats
impl Send for ConsumerStats
impl Sync for ConsumerStats
impl Unpin for ConsumerStats
impl UnwindSafe for ConsumerStats
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