pub struct SerializableChannelStats {
pub id: String,
pub label: String,
pub channel_type: ChannelType,
pub state: ChannelState,
pub sent_count: u64,
pub received_count: u64,
pub queued: u64,
pub type_name: String,
pub type_size: usize,
pub total_bytes: u64,
pub queued_bytes: u64,
}Expand description
Serializable version of channel statistics for JSON responses.
Fields§
§id: StringID of the channel.
label: StringOptional user label; if None, display derives from id.
channel_type: ChannelTypeType of channel (includes capacity for bounded channels).
state: ChannelStateCurrent state of the channel.
sent_count: u64Number of messages sent through this channel.
received_count: u64Number of messages received from this channel.
queued: u64Current queue size (sent - received).
type_name: StringType name of messages in this channel.
type_size: usizeSize in bytes of the message type.
total_bytes: u64Total bytes sent through this channel.
queued_bytes: u64Bytes currently queued in this channel.
Trait Implementations§
Source§impl Clone for SerializableChannelStats
impl Clone for SerializableChannelStats
Source§fn clone(&self) -> SerializableChannelStats
fn clone(&self) -> SerializableChannelStats
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 SerializableChannelStats
impl Debug for SerializableChannelStats
Source§impl<'de> Deserialize<'de> for SerializableChannelStats
impl<'de> Deserialize<'de> for SerializableChannelStats
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 SerializableChannelStats
impl RefUnwindSafe for SerializableChannelStats
impl Send for SerializableChannelStats
impl Sync for SerializableChannelStats
impl Unpin for SerializableChannelStats
impl UnwindSafe for SerializableChannelStats
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